diff options
author | Frank Harrison <doublethefish@gmail.com> | 2020-04-03 13:39:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-03 14:39:52 +0200 |
commit | c1a48e9ec3082664780f30bdb6b7fa7d021fec25 (patch) | |
tree | 40750754c17f65548d4c789bf0031325aefc0126 /tox.ini | |
parent | 53e5406b9279008f3ae8b5f045e5cd5773771d70 (diff) | |
download | pylint-git-c1a48e9ec3082664780f30bdb6b7fa7d021fec25.tar.gz |
tox| Uses -m coverage instead of path to site-packages (#3464)
As this was breaking on Fedora, use the coverage module invocation
instead of calling the site-package directly.
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -43,7 +43,7 @@ setenv = COVERAGE_FILE = {toxinidir}/.coverage.{envname} commands = - python -Wi {envsitepackagesdir}/coverage run -m pytest {toxinidir}/tests/ {posargs:} + python -Wignore -m coverage run -m pytest {toxinidir}/tests/ {posargs:} ; Transform absolute path to relative path ; for compatibility with coveralls.io and fix 'source not available' error. @@ -74,8 +74,8 @@ deps = coveralls skip_install = true commands = - python {envsitepackagesdir}/coverage combine - python {envsitepackagesdir}/coverage report --rcfile={toxinidir}/.coveragerc -m + python -m coverage combine + python -m coverage report --rcfile={toxinidir}/.coveragerc -m - coveralls --rcfile={toxinidir}/.coveragerc changedir = {toxinidir} @@ -86,7 +86,7 @@ deps = coverage<5 skip_install = true commands = - python {envsitepackagesdir}/coverage erase + python -m coverage erase changedir = {toxinidir} [testenv:docs] |