summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2020-04-25 14:10:30 +0000
committeriphydf <iphydf@users.noreply.github.com>2020-04-26 16:05:12 +0000
commit087eede3a3e75cd7861e7a9b9c949bf36016829e (patch)
treed09115145fe0bdd2415af1c2e18c7427627251d4
parent8816e50ed708f10fd94c77f1e2ac9a1f9bc2e5dc (diff)
Allow test coverage to fluctuate 2% up and down, but not below 80%.
-rw-r--r--.github/settings.yml6
-rw-r--r--codecov.yml8
2 files changed, 12 insertions, 2 deletions
diff --git a/.github/settings.yml b/.github/settings.yml
index 4ea1ac9c..4dedd871 100644
--- a/.github/settings.yml
+++ b/.github/settings.yml
@@ -1,5 +1,5 @@
1--- 1---
2_extends: template 2_extends: .github
3 3
4repository: 4repository:
5 name: c-toxcore 5 name: c-toxcore
@@ -16,10 +16,12 @@ branches:
16 - Codacy/PR Quality Review 16 - Codacy/PR Quality Review
17 - CodeFactor 17 - CodeFactor
18 - Travis CI - Pull Request 18 - Travis CI - Pull Request
19 - WIP
20 - "ci/circleci: asan" 19 - "ci/circleci: asan"
21 - "ci/circleci: tsan" 20 - "ci/circleci: tsan"
21 - cirrus-ci
22 - code-review/reviewable 22 - code-review/reviewable
23 - codecov/patch
24 - codecov/project
23 - continuous-integration/appveyor/pr 25 - continuous-integration/appveyor/pr
24 26
25# Labels specific to c-toxcore. 27# Labels specific to c-toxcore.
diff --git a/codecov.yml b/codecov.yml
index f2e3042d..45b48ca2 100644
--- a/codecov.yml
+++ b/codecov.yml
@@ -3,3 +3,11 @@ coverage:
3 precision: 2 3 precision: 2
4 round: down 4 round: down
5 range: "80...100" 5 range: "80...100"
6
7 status:
8 project:
9 default:
10 # Allow coverage to fluctuate 2% up and down. We can never go below 80%
11 # because of the above range, but toxcore coverage fluctuates a lot due
12 # to low coverage of error paths that sometimes happen.
13 threshold: 2%