summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2018-09-30 11:49:13 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2018-09-30 11:49:13 +0200
commit18591e5e3e18026c770c48cbc044a77333231fc5 (patch)
treecd8ae1ecf76d9eb2b2d7d3f3a169f8c005ad40c0 /tox.ini
parent3746acc55f5445e1e350fa4a4ca225fad823ed12 (diff)
downloadastroid-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
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini9
1 files changed, 2 insertions, 7 deletions
diff --git a/tox.ini b/tox.ini
index f3767a9e..0067856f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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]