Files
9576c6fdeba252d4548c37aa2cbf699f28d4c14b
nova /tox.ini

47 lines
1.6 KiB
INI
Raw Normal View History

[testenv]
setenv = VIRTUAL_ENV={envdir}
LANGUAGE=en_US:en
LC_ALL=C
deps = -r{toxinidir}/tools/pip-requires
-r{toxinidir}/tools/test-requires
bash -c 'testr run --parallel {posargs} ; RET=$? ; echo "Slowest Tests" ; testr slowest && exit $RET'
downloadcache = ~/cache/pip
[testenv:pep8]
python tools/hacking.py --ignore=E12,E711,E721,E712 --repeat --show-source \
python tools/hacking.py --ignore=E12,E711,E721,E712 --repeat --show-source \
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/tools/pip-requires
deps = pyflakes
commands = python tools/flakes.py nova
# it ceases to exist post test run. Also do not run test_coverage_ext tests
# while gathering coverage as those tests conflict with coverage.
setenv = OMIT=--omit=DynamicallyCompiledCheetahTemplate.py
PYTHON=coverage run --source nova --parallel-mode
commands = bash -c 'if [ ! -d ./.testrepository ] ; then testr init ; fi'
bash -c 'testr run --parallel \^\(\?\!\.\*test_coverage_ext\)\.\*\$ ; RET=$? ; coverage combine ; coverage html -d ./cover $OMIT && exit $RET'
[testenv:venv]
commands = {posargs}