From 6ece45e3af789cc6a1da069518575d4b64eef34e Mon Sep 17 00:00:00 2001 From: Tal Einat Date: Mon, 2 Feb 2015 03:37:26 +0200 Subject: [PATCH] tox: combine coverage reports for each version of Python --- tox.ini | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tox.ini b/tox.ini index 420533e..21b7436 100644 --- a/tox.ini +++ b/tox.ini @@ -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 =