summaryrefslogtreecommitdiff
path: root/.codecov.yml
blob: fead3ad004f72cf787748819342977b9f902c5aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
coverage:
  precision: 2
  round: nearest
  range: 60...90
  status:
    project:
      default:
        threshold: 0.2%

ignore:
  - lib/spack/spack/test/.*
  - lib/spack/docs/.*
  - lib/spack/external/.*
  - share/spack/qa/.*

comment: off

# Inline codecov annotations make the code hard to read, and they add
# annotations in files that seemingly have nothing to do with the PR.
github_checks:
    annotations: false

# Attempt to fix "Missing base commit" messages in the codecov UI.
# Because we do not run full tests on package PRs, package PRs' merge
# commits on `develop` don't have coverage info.  It appears that
# codecov will give you an error if the pseudo-base's coverage data
# doesn't all apply properly to the real PR base.
#
# See here for docs:
#   https://docs.codecov.com/docs/comparing-commits#pseudo-comparison
# See here for another potential solution:
#   https://community.codecov.com/t/2480/15
codecov:
  allow_coverage_offsets: true