Files
2d4c312109473578987693ec12a9a579b9aad32e
nova /tox.ini

93 lines
3.0 KiB
INI
Raw Normal View History

[testenv]
whitelist_externals = bash
find
# random hash seed successfully.
setenv = VIRTUAL_ENV={envdir}
# mode. To do this define the TRACE_FAILONLY environmental variable.
downloadcache = ~/cache/pip
[testenv:pep8]
usedevelop = True
install_command = pip install -U --force-reinstall {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
find . -type f -name "*.pyc" -delete
commands =
bash tools/config/generate_sample.sh -b . -p nova -o etc/nova
# Also do not run test_coverage_ext tests while gathering coverage as those
# tests conflict with coverage.
commands =
coverage html --include='nova/*' --omit='nova/openstack/common/*' -d covhtml -i
[testenv:venv]
commands = {posargs}
python setup.py build_sphinx
bash -c '! find doc/ -type f -name *.json | xargs -t -n1 python -m json.tool 2>&1 > /dev/null | grep -B1 -v ^python'
# to 25 and run 'tox -epep8'.
[hacking]
local-check-factory = nova.hacking.checks.factory
[testenv:pip-missing-reqs]
# do not install test-requirements as that will pollute the virtualenv for
# determining missing packages
# this also means that pip-missing-reqs must be installed separately, outside
# of the requirements.txt files
deps = pip_missing_reqs
-rrequirements.txt
commands=pip-missing-reqs -d --ignore-file=nova/tests/* nova