From 4d61fe24fdefb301df77e2ac278049e4a6f7e2e6 Mon Sep 17 00:00:00 2001 From: Brian Cloutier Date: Thu, 8 Dec 2016 15:53:15 +0200 Subject: [PATCH 1/2] Add auto-generated codecov.yaml, default settings --- .codecov.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .codecov.yml diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 000000000..0b85876fe --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,26 @@ +codecov: + notify: + require_ci_to_pass: true +comment: + behavior: default + layout: header, diff + require_changes: false +coverage: + precision: 2 + range: + - 70.0 + - 100.0 + round: down + status: + changes: false + patch: true + project: true +parsers: + gcov: + branch_detection: + conditional: true + loop: true + macro: false + method: false + javascript: + enable_partials: false From 76d2463e4d659af90c7c403156811fab5c22943c Mon Sep 17 00:00:00 2001 From: Brian Cloutier Date: Thu, 8 Dec 2016 17:03:48 +0300 Subject: [PATCH 2/2] Only fail if code coverage drops by over 0.5% Currently codecov, annoyingly, fails the PR whenever coverage decreases. This commit changes the threshold, and will only fail PRs if: - coverage falls below 80% - coverage drops by more than 0.5% --- .codecov.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index 0b85876fe..b67f16a12 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -13,8 +13,11 @@ coverage: round: down status: changes: false - patch: true - project: true + patch: false + project: + target: 80 + threshold: 0.5 + base: pr parsers: gcov: branch_detection: