Allow test coverage to fluctuate 2% up and down, but not below 80%.

This commit is contained in:
iphydf 2020-04-25 14:10:30 +00:00
parent 8816e50ed7
commit 087eede3a3
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9
2 changed files with 12 additions and 2 deletions

View File

@ -1,5 +1,5 @@
---
_extends: template
_extends: .github
repository:
name: c-toxcore
@ -16,10 +16,12 @@ branches:
- Codacy/PR Quality Review
- CodeFactor
- Travis CI - Pull Request
- WIP
- "ci/circleci: asan"
- "ci/circleci: tsan"
- cirrus-ci
- code-review/reviewable
- codecov/patch
- codecov/project
- continuous-integration/appveyor/pr
# Labels specific to c-toxcore.

View File

@ -3,3 +3,11 @@ coverage:
precision: 2
round: down
range: "80...100"
status:
project:
default:
# Allow coverage to fluctuate 2% up and down. We can never go below 80%
# because of the above range, but toxcore coverage fluctuates a lot due
# to low coverage of error paths that sometimes happen.
threshold: 2%