From 087eede3a3e75cd7861e7a9b9c949bf36016829e Mon Sep 17 00:00:00 2001 From: iphydf Date: Sat, 25 Apr 2020 14:10:30 +0000 Subject: Allow test coverage to fluctuate 2% up and down, but not below 80%. --- .github/settings.yml | 6 ++++-- codecov.yml | 8 ++++++++ 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 @@ --- -_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. diff --git a/codecov.yml b/codecov.yml index f2e3042d..45b48ca2 100644 --- a/codecov.yml +++ b/codecov.yml @@ -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% -- cgit v1.2.3