Files
25ea5f480d22e38d0d7f82f80fd651713d4b9211
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.
ignore = E111,E112,E113,E121,E122,E123,E124,E125,E129,E126,E127,E128,E131,E251,E265,E303,E711,E712,E713,F811,F402,F812,H305,H307,H405,H803,H904
[hacking]
local-check-factory = nova.hacking.checks.factory