summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorJürgen Gmach <juergen.gmach@googlemail.com>2021-03-12 09:54:51 +0100
committerGitHub <noreply@github.com>2021-03-12 08:54:51 +0000
commitec50a6f2ccdf83a070d0037d7e685aa3c843821e (patch)
tree26fee5e26bea33b9fbaa84ed8218ce0f110b7a0e /tox.ini
parent41fa387a8c3e139ae7f953227dcbf57bede703a9 (diff)
downloadtox-git-ec50a6f2ccdf83a070d0037d7e685aa3c843821e.tar.gz
coverage report: enable setting a different `upstream` repository (#1973)
The coverage report was comparing the local branch to `upstream/rewrite`. This was hardcoded. Now, you can change the remote repository by ``DIFF_AGAINST`` env variable as intended. This fixes #1972
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini2
1 files changed, 1 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 55b84264..74d0ff54 100644
--- a/tox.ini
+++ b/tox.ini
@@ -79,7 +79,7 @@ commands =
coverage report -m
coverage xml -o {toxworkdir}{/}coverage.xml
coverage html -d {toxworkdir}{/}htmlcov
- diff-cover --compare-branch upstream/rewrite {toxworkdir}{/}coverage.xml
+ diff-cover --compare-branch {env:DIFF_AGAINST:upstream/rewrite} {toxworkdir}{/}coverage.xml
depends =
py39
py38