tox: combine coverage reports for each version of Python
This commit is contained in:
parent
7d1ab83b10
commit
6ece45e3af
5
tox.ini
5
tox.ini
|
@ -12,12 +12,17 @@ deps =
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/test_requirements.txt
|
-r{toxinidir}/test_requirements.txt
|
||||||
coverage
|
coverage
|
||||||
|
whitelist_externals =
|
||||||
|
mv
|
||||||
commands =
|
commands =
|
||||||
# run tests both with and without the C extensions (including Cython)
|
# run tests both with and without the C extensions (including Cython)
|
||||||
{envpython} setup.py --quiet build_ext --inplace
|
{envpython} setup.py --quiet build_ext --inplace
|
||||||
{envbindir}/coverage run -m nose2 --no-user-config tests
|
{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")]'
|
{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
|
{envbindir}/coverage run -m nose2 --no-user-config tests
|
||||||
|
mv .coverage .coverage.no_extensions
|
||||||
|
{envbindir}/coverage combine
|
||||||
|
|
||||||
[testenv:py26]
|
[testenv:py26]
|
||||||
deps =
|
deps =
|
||||||
|
|
Loading…
Reference in New Issue