Files
75ecc63db95faf5704020f4974bda1a8d8f652c8
nova /tox.ini

102 lines
3.4 KiB
INI
Raw Normal View History

[testenv]
whitelist_externals = bash
find
constraints: pip install -U --force-reinstall -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
pip install -U --force-reinstall {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
# mode. To do this define the TRACE_FAILONLY environmental variable.
downloadcache = ~/cache/pip
[testenv:pep8]
find . -type f -name "*.pyc" -delete
usedevelop = True
install_command = pip install -U --force-reinstall {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
OS_TEST_PATH=./nova/tests/functional
find . -type f -name "*.pyc" -delete
# 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]
bash -c '! find doc/ -type f -name *.json | xargs -t -n1 python -m json.tool 2>&1 > /dev/null | grep -B1 -v ^python'
commands = bandit -c bandit.yaml -r nova -n 5 -ll
# 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