tox: Trivial cleanups
Signed-off-by: Stephen Finucane <stephenfin@redhat.com> Change-Id: I6a78a626916796b7c385a89d2139b621140d6c0c
This commit is contained in:
parent
d17f58d1bf
commit
159d752030
27
tox.ini
27
tox.ini
|
@ -5,13 +5,12 @@ ignore_basepython_conflict = true
|
|||
|
||||
[testenv]
|
||||
basepython = python3
|
||||
install_command = pip install {opts} {packages}
|
||||
whitelist_externals = find
|
||||
rm
|
||||
deps =
|
||||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||
-r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||
-r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
setenv =
|
||||
PYTHONDONTWRITEBYTECODE=1
|
||||
commands =
|
||||
stestr run --slowest {posargs}
|
||||
|
||||
|
@ -36,8 +35,10 @@ commands =
|
|||
coverage report
|
||||
|
||||
[testenv:docs]
|
||||
whitelist_externals = rm
|
||||
deps = -r{toxinidir}/doc/requirements.txt
|
||||
whitelist_externals =
|
||||
rm
|
||||
deps =
|
||||
-r{toxinidir}/doc/requirements.txt
|
||||
commands =
|
||||
rm -rf doc/build
|
||||
sphinx-build -E -W --keep-going -b html doc/source doc/build/html
|
||||
|
@ -49,12 +50,12 @@ commands = oslo_debug_helper {posargs}
|
|||
# E123, E125 skipped as they are invalid PEP-8.
|
||||
show-source = True
|
||||
ignore = E123,E125,E731,W504
|
||||
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
||||
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
||||
|
||||
[testenv:releasenotes]
|
||||
whitelist_externals = rm
|
||||
whitelist_externals =
|
||||
rm
|
||||
deps = {[testenv:docs]deps}
|
||||
commands =
|
||||
rm -rf releasenotes/build
|
||||
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
||||
|
||||
rm -rf releasenotes/build
|
||||
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
||||
|
|
Loading…
Reference in New Issue