Like we did with pbr in I1678bcd26b41fdf09f98c36fc095d6d4c1826deb, suppress the overly noisy output of reno tests. This requires bumping the minimum version of stestr. Change-Id: I62c13a1e19e83b83f81e21f50434758b1a1f7cd9 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
61 lines
1.3 KiB
INI
61 lines
1.3 KiB
INI
[tox]
|
|
minversion = 3.1.0
|
|
envlist = py37,pep8
|
|
ignore_basepython_conflict = True
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
usedevelop = True
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
deps =
|
|
-r{toxinidir}/test-requirements.txt
|
|
.[sphinx]
|
|
commands =
|
|
stestr run --slowest --suppress-attachments {posargs}
|
|
|
|
[testenv:pep8]
|
|
deps = {[testenv]deps}
|
|
hacking >= 3.0.0,<3.1.0
|
|
commands =
|
|
flake8
|
|
reno -q lint
|
|
|
|
[testenv:lower-constraints]
|
|
deps =
|
|
-c{toxinidir}/lower-constraints.txt
|
|
{[testenv]deps}
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:cover]
|
|
setenv =
|
|
{[testenv]setenv}
|
|
PYTHON=coverage run --source reno --parallel-mode
|
|
commands =
|
|
stestr run {posargs}
|
|
coverage combine
|
|
coverage html -d cover
|
|
coverage xml -o cover/coverage.xml
|
|
|
|
[testenv:docs]
|
|
# NOTE(dhellmann): Build our own documentation using the
|
|
# lower-constraints list as a hacky way to test the sphinx extension
|
|
# module, since we don't have separate unit tests for it.
|
|
deps =
|
|
-c{toxinidir}/lower-constraints.txt
|
|
{[testenv]deps}
|
|
commands = sphinx-build -a -W -E -b html doc/source doc/build/html
|
|
|
|
[testenv:debug]
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
[flake8]
|
|
# E123, E125 skipped as they are invalid PEP-8.
|
|
# W503 line break before binary operator
|
|
show-source = True
|
|
ignore = E123,E125,W503
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|