oslotest/tox.ini
wu.shiming 0d208eb0aa Remove lower-constraints remnants
These were missed in change: I63153d3258e10d232f86f7a8b652eb7028aab4c6

Change-Id: I47388f13483d2938208ba385be4c94731e79e3ae
2021-02-20 09:28:34 +08:00

48 lines
1.1 KiB
INI

[tox]
minversion = 3.1.0
envlist = py3,pep8
ignore_basepython_conflict = True
[testenv]
basepython = python3
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands = stestr run --slowest {posargs}
[testenv:pep8]
commands = pre-commit run -a
[testenv:cover]
setenv =
PYTHON=coverage run --source oslotest --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
[testenv:venv]
commands = {posargs}
[testenv:docs]
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
commands =
sphinx-build -W --keep-going -b html -d doc/build/doctrees doc/source doc/build/html
[testenv:releasenotes]
deps = {[testenv:docs]deps}
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[flake8]
show-source = true
exclude = .tox,dist,doc,*.egg,build
[hacking]
import_exceptions =
six.moves.mock