summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2017-10-12 12:48:03 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2017-10-12 12:48:03 +0200
commit7bfb5e83b162d2126c9929b6d863724176269b6d (patch)
tree4574a19cca3e3782c62dabc96e0c26360e6e4c85 /tox.ini
parent1602d9989ce74773bd5d7f2d0d76861eb210d227 (diff)
downloadastroid-git-7bfb5e83b162d2126c9929b6d863724176269b6d.tar.gz
Run the local tests, not the installed ones, and strip the local path for coveralls
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini4
1 files changed, 2 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index 1daa88d3..7ed9d36a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -24,11 +24,11 @@ setenv =
COVERAGE_FILE = {toxinidir}/.coverage.{envname}
commands =
- python -Wi {envsitepackagesdir}/coverage run -m unittest {posargs: discover -s {envsitepackagesdir}/astroid/tests -p "unittest*.py"}
+ python -Wi -m coverage run -m unittest {posargs: discover -s astroid/tests -p "unittest*.py"}
; 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('.tox' + os.sep + os.path.relpath('{envsitepackagesdir}', '{toxworkdir}') + os.sep, '');open(os.environ['COVERAGE_FILE'], 'w').write(cov_strip_abspath)"
+ 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)"
[testenv:coveralls]
setenv =