2014-12-13 06:26:59 +00:00
|
|
|
[tox]
|
2020-02-14 14:58:30 +00:00
|
|
|
minversion = 3.2.0
|
2020-11-03 13:30:24 +00:00
|
|
|
envlist = py3,pep8
|
2020-02-03 15:14:42 +00:00
|
|
|
ignore_basepython_conflict = True
|
2014-12-13 06:26:59 +00:00
|
|
|
|
|
|
|
[testenv]
|
2020-02-03 15:14:42 +00:00
|
|
|
basepython = python3
|
2016-12-20 04:41:19 +00:00
|
|
|
setenv =
|
|
|
|
VIRTUAL_ENV={envdir}
|
2017-12-02 06:16:07 +00:00
|
|
|
deps =
|
2020-11-04 09:45:57 +00:00
|
|
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
2017-12-02 06:16:07 +00:00
|
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
-r{toxinidir}/requirements.txt
|
2020-02-03 15:14:42 +00:00
|
|
|
commands =
|
|
|
|
stestr run --slowest {posargs}
|
2014-12-13 06:26:59 +00:00
|
|
|
|
2016-01-13 06:10:08 +00:00
|
|
|
[testenv:debug]
|
|
|
|
commands = oslo_debug_helper {posargs}
|
|
|
|
|
2014-12-13 06:26:59 +00:00
|
|
|
[testenv:pep8]
|
2020-02-04 10:19:33 +00:00
|
|
|
commands =
|
2020-07-21 11:28:10 +00:00
|
|
|
pre-commit run -a
|
2020-02-04 10:19:33 +00:00
|
|
|
sphinx-build -b doctest doc/source doc/build
|
|
|
|
doc8 --ignore-path "doc/source/history.rst" doc/source
|
2014-12-13 06:26:59 +00:00
|
|
|
|
|
|
|
[testenv:venv]
|
|
|
|
commands = {posargs}
|
|
|
|
|
|
|
|
[testenv:cover]
|
2018-07-09 06:30:30 +00:00
|
|
|
setenv =
|
|
|
|
PYTHON=coverage run --source $project --parallel-mode
|
|
|
|
commands =
|
2018-10-09 20:52:10 +00:00
|
|
|
stestr run {posargs}
|
2018-07-09 06:30:30 +00:00
|
|
|
coverage combine
|
|
|
|
coverage html -d cover
|
|
|
|
coverage xml -o cover/coverage.xml
|
2014-12-13 06:26:59 +00:00
|
|
|
|
|
|
|
[testenv:docs]
|
2020-02-03 15:14:42 +00:00
|
|
|
commands = sphinx-build -W --keep-going -b html -d doc/build/doctrees doc/source doc/build/html
|
2015-07-14 18:22:23 +00:00
|
|
|
|
2014-12-13 06:26:59 +00:00
|
|
|
[flake8]
|
|
|
|
# E123, E125 skipped as they are invalid PEP-8.
|
|
|
|
show-source = True
|
2015-02-12 22:47:18 +00:00
|
|
|
ignore = E123,E125
|
2016-08-02 12:10:29 +00:00
|
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
2016-11-01 07:46:23 +00:00
|
|
|
|
|
|
|
[testenv:releasenotes]
|
|
|
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
2018-03-22 15:10:32 +00:00
|
|
|
|