From fcc02f8de89a1bcf5c613288e576b3d93d9ab437 Mon Sep 17 00:00:00 2001 From: Nicolas Ruflin Date: Thu, 6 Apr 2017 10:09:27 +0200 Subject: [PATCH] Update codecov config (#3906) Codecov will report coverage for the patch and for the project based on the pull request. In case the overall coverage drops by more then 0.5% the pull request will fail. It is still possible to have pull requests without tests which will not fail because the overall coverage did not change too much. --- codecov.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/codecov.yml b/codecov.yml index a151773528e7..41da7c8ba42b 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,14 +1,26 @@ # Enable coverage report message for diff on commit +# Docs can be found here: https://docs.codecov.io/v4.3.0/docs/commit-status coverage: status: - project: off + project: + default: + target: auto + # Overall coverage should never drop more then 0.5% + threshold: 0.5 + base: auto + branches: null + if_no_uploads: error + if_not_found: success + if_ci_failed: error + only_pulls: false + flags: null + paths: null patch: default: - # basic target: auto - threshold: 0.1 + # Allows PRs without tests, overall stats count + threshold: 100 base: auto - # advanced branches: null if_no_uploads: error if_not_found: success