Skip to content

Commit

Permalink
fix coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbernat committed Jun 10, 2018
1 parent 06699c0 commit 911e704
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,18 @@ commands = pre-commit run --all-files --show-diff-on-failure


[testenv:coverage]
description = [run locally after tests]: combine coverage data and create reports
description = [run locally after tests]: combine coverage data and create report;
generates a diff coverage against origin/master (can be changed by setting DIFF_AGAINST env var)
deps = {[testenv]deps}
coverage >= 4.4.1, < 5
diff_cover
skip_install = True
setenv = COVERAGE_FILE={toxworkdir}/.coverage
changedir = {toxinidir}
commands = coverage erase
coverage combine
coverage report -m
coverage xml
diff-cover --compare-branch upstream/master {toxworkdir}/coverage.xml
coverage xml -o {toxworkdir}/coverage.xml
diff-cover --compare-branch {env:DIFF_AGAINST:origin/master} {toxworkdir}/coverage.xml

[testenv:codecov]
description = [only run on CI]: upload coverage data to codecov (depends on coverage running first)
Expand Down

0 comments on commit 911e704

Please sign in to comment.