Files
518b2766ba69ea9447d2e8f931107addff72893c
nova /tox.ini

69 lines
2.0 KiB
INI
Raw Normal View History

[testenv]
setenv = VIRTUAL_ENV={envdir}
downloadcache = ~/cache/pip
[testenv:pep8]
commands =
sitepackages = False
commands =
bash tools/config/generate_sample.sh -b . -p nova -o etc/nova
setenv = VIRTUAL_ENV={envdir}
commands = bash tools/lintstack.sh
# Also do not run test_coverage_ext tests while gathering coverage as those
# tests conflict with coverage.
python -m nova.openstack.common.lockutils python setup.py testr --coverage \
--testr-args='(?=.*{posargs})^(?!.*test.*coverage).*$'
coverage combine
coverage html --include='nova/*' --omit='nova/openstack/common/*' -d covhtml -i
[testenv:venv]
commands = {posargs}
commands = python setup.py build_sphinx
sitepackages = False
# in sqlalchemy.
# H803 skipped on purpose per list discussion.
# Stricter in hacking 0.9: E111, E112, E113, E251, E303, F402, F812,H401,H402
[hacking]
local-check-factory = nova.hacking.checks.factory