summaryrefslogtreecommitdiff
path: root/codecov.yml
diff options
context:
space:
mode:
authorAyush Karnawat <ayush.karnawat97@gmail.com>2020-05-19 02:29:51 -0400
committerGitHub <noreply@github.com>2020-05-19 08:29:51 +0200
commitad04f50a04fcc240604eda416fac1099d269302c (patch)
tree5ffca11e7db48ea2406a2708bbb0b60f3592de1a /codecov.yml
parent37456eb117022393472eed22e0d0c2eb17faf786 (diff)
[MRG] Codecov options + remove 2.7 (#178)
* cleanup setup * Ignore files in codecov * Remove externals module * change name to compile_args * bye py2.7 (you will be missed) * glob to ignore folders
Diffstat (limited to 'codecov.yml')
-rw-r--r--codecov.yml43
1 files changed, 37 insertions, 6 deletions
diff --git a/codecov.yml b/codecov.yml
index fbd1b07..a669611 100644
--- a/codecov.yml
+++ b/codecov.yml
@@ -1,3 +1,15 @@
+# Docs ref: https://docs.codecov.io/docs/codecovyml-reference
+# Validation check: $ curl --data-binary @codecov.yml https://codecov.io/validate
+
+
+codecov:
+ token: 057953e4-d263-41c0-913c-5d45c0371df9
+ bot: "codecov-io"
+ strict_yaml_branch: "yaml-config"
+ require_ci_to_pass: yes
+ notify:
+ wait_for_ci: yes
+
coverage:
precision: 2
round: down
@@ -5,12 +17,31 @@ coverage:
status:
project:
default:
- target: auto
- threshold: 0.01
- patch: false
+ base: auto # target to compare against
+ target: auto # target "X%" coverage to hit on project
+ threshold: 1% # allow this much decrease from base
+ if_ci_failed: error
+ patch:
+ default:
+ base: auto # target to compare against
+ target: 50% # target "X%" coverage to hit on patch
+ # threshold: 50% # allow this much decrease on patch
changes: false
+
+parsers:
+ gcov:
+ branch_detection:
+ conditional: yes
+ loop: yes
+ method: no
+ macro: no
+
+# https://docs.codecov.io/docs/ignoring-paths
+ignore:
+ - "ot/gpu/**/*"
+
+# https://docs.codecov.io/docs/pull-request-comments
comment:
- layout: "header, diff, sunburst, uncovered"
+ layout: header, diff, sunburst, uncovered
behavior: default
-codecov:
- token: 057953e4-d263-41c0-913c-5d45c0371df9 \ No newline at end of file
+ require_changes: true # if true: only post the comment if coverage changes