Files
nova-specs/tox.ini
Vu Cong Tuan a25b4367b5 Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: I8f4fb6c486641a878950e39771834c37fdde7487
2018-10-24 09:14:41 +07:00

39 lines
866 B
INI

[tox]
envlist = docs,pep8
skipsdist = True
[testenv]
basepython = python3
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/doc/requirements.txt
whitelist_externals = find
[testenv:venv]
commands = {posargs}
[testenv:docs]
commands = sphinx-build -b html doc/source doc/build/html
[testenv:pep8]
deps =
-r{toxinidir}/doc/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
find . -type f -name "*.pyc" -delete
stestr run --slowest {posargs}
flake8 {posargs}
[flake8]
ignore = E128
exclude = .venv,.git,.tox,doc,.eggs
[testenv:move-implemented-specs]
# NOTE(mriedem): simplejson is used by launchpadlib but is a lazy import and
# fails if we don't have it.
deps = launchpadlib
simplejson
commands =
python {toxinidir}/tools/move_implemented_specs.py {posargs}