Skip to content

Commit

Permalink
Use Codecov carryforward flags (#5406)
Browse files Browse the repository at this point in the history
* Use Codecov carryforward flags

* report coverage to codecov for nightly tests
  • Loading branch information
jdavies-st authored Oct 26, 2020
1 parent a961f4d commit 850b2bb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
19 changes: 14 additions & 5 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
coverage:
status:
project:
default: off
default:
target: auto
threshold: 0.1%
unit:
flags: unit
target: auto
flags:
- unit
nightly:
flags: nightly
target: auto
flags:
- nightly

flags:
unit:
joined: true
carryforward: false
nightly:
joined: false
carryforward: true

comment:
show_carryforward_flags: true
3 changes: 2 additions & 1 deletion JenkinsfileRT
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ bc0.build_cmds = [
]
bc0.build_cmds = PipInject(env.OVERRIDE_REQUIREMENTS) + bc0.build_cmds
bc0.test_cmds = [
"pytest --cov-report=xml --cov -r sxf -n 30 --bigdata --slow \
"pytest --cov-report=xml --cov=./ -r sxf -n 30 --bigdata --slow \
--basetemp=${pytest_basetemp} --junit-xml=results.xml --dist=loadscope \
--env=${artifactoryenv} ${pytest_args}",
"codecov --token=${codecov_token} -F nightly",
]
bc0.test_configs = [data_config]

Expand Down

0 comments on commit 850b2bb

Please sign in to comment.