tox: combine coverage reports for each version of Python

This commit is contained in:
Tal Einat 2015-02-02 03:37:26 +02:00
parent 7d1ab83b10
commit 6ece45e3af
1 changed files with 5 additions and 0 deletions

View File

@ -12,12 +12,17 @@ deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test_requirements.txt
coverage
whitelist_externals =
mv
commands =
# run tests both with and without the C extensions (including Cython)
{envpython} setup.py --quiet build_ext --inplace
{envbindir}/coverage run -m nose2 --no-user-config tests
mv .coverage .coverage.with_extensions
{envpython} -c 'import os; [os.remove(os.path.join(d, fn)) for (d, dns, fns) in os.walk("{envdir}") for fn in fns if fn.endswith(".so")]'
{envbindir}/coverage run -m nose2 --no-user-config tests
mv .coverage .coverage.no_extensions
{envbindir}/coverage combine
[testenv:py26]
deps =