diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2018-09-30 11:49:13 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2018-09-30 11:49:13 +0200 |
commit | 18591e5e3e18026c770c48cbc044a77333231fc5 (patch) | |
tree | cd8ae1ecf76d9eb2b2d7d3f3a169f8c005ad40c0 | |
parent | 3746acc55f5445e1e350fa4a4ca225fad823ed12 (diff) | |
download | astroid-git-18591e5e3e18026c770c48cbc044a77333231fc5.tar.gz |
Remove the absolute to relative path transform for coverage, which is no longer needed as tests are not installed with the package anymore
-rw-r--r-- | tox.ini | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -36,11 +36,7 @@ commands = ; installed astroid package ; This is important for tests' test data which create files ; inside the package - python -Wi {envsitepackagesdir}/coverage run -m pytest --pyargs astroid {posargs:} - ; Transform absolute path to relative path - ; for compatibility with coveralls.io and fix 'source not available' error. - ; If you can find a cleaner way is welcome - python -c "import os;cov_strip_abspath = open(os.environ['COVERAGE_FILE'], 'r').read().replace('{toxinidir}' + os.sep, '');open(os.environ['COVERAGE_FILE'], 'w').write(cov_strip_abspath)" + python -Wi {envsitepackagesdir}/coverage run -m pytest --pyarg astroid/tests {posargs:} [testenv:coveralls] setenv = @@ -53,8 +49,7 @@ deps = skip_install = true commands = python {envsitepackagesdir}/coverage combine - python {envsitepackagesdir}/coverage report --rcfile={toxinidir}/.coveragerc -m - - coveralls --rcfile={toxinidir}/.coveragerc + python {envsitepackagesdir}/coverage report --rcfile={toxinidir}/.coveragerc -m - coveralls --rcfile={toxinidir}/.coveragerc changedir = {toxinidir} [testenv:coverage-erase] |