tox: Bump minimum to v4
This is what everyone is using anyway. Reflect that. We also modify indentation so that it is consistent throughout the file. Change-Id: I070aa92aa02101b89ad7e3180643b25a5c53f5b2 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
parent
934014d501
commit
02f0d219cc
76
tox.ini
76
tox.ini
@ -1,34 +1,29 @@
|
|||||||
[tox]
|
[tox]
|
||||||
minversion = 3.18.0
|
minversion = 4.6
|
||||||
envlist = py3,pep8
|
envlist = py3,pep8
|
||||||
skipsdist = True
|
|
||||||
# this allows tox to infer the base python from the environment name
|
|
||||||
# and override any basepython configured in this file
|
|
||||||
ignore_basepython_conflict=true
|
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
basepython = python3
|
usedevelop = true
|
||||||
usedevelop = True
|
setenv =
|
||||||
install_command = pip install {opts} {packages}
|
VIRTUAL_ENV={envdir}
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
ZAQAR_TESTS_CONFIGS_DIR={toxinidir}/zaqar/tests/etc/
|
||||||
ZAQAR_TESTS_CONFIGS_DIR={toxinidir}/zaqar/tests/etc/
|
ZAQAR_TEST_MONGODB=1
|
||||||
ZAQAR_TEST_MONGODB=1
|
ZAQAR_TEST_SLOW=1
|
||||||
ZAQAR_TEST_SLOW=1
|
OS_STDOUT_CAPTURE=1
|
||||||
OS_STDOUT_CAPTURE=1
|
OS_STDERR_CAPTURE=1
|
||||||
OS_STDERR_CAPTURE=1
|
OS_TEST_TIMEOUT=60
|
||||||
OS_TEST_TIMEOUT=60
|
|
||||||
deps =
|
deps =
|
||||||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
commands =
|
commands =
|
||||||
stestr run --serial --slowest {posargs}
|
stestr run --serial --slowest {posargs}
|
||||||
|
|
||||||
[testenv:integration]
|
[testenv:integration]
|
||||||
setenv = {[testenv]setenv}
|
setenv =
|
||||||
ZAQAR_TEST_INTEGRATION=1
|
{[testenv]setenv}
|
||||||
OS_TEST_PATH=./zaqar/tests/functional
|
ZAQAR_TEST_INTEGRATION=1
|
||||||
commands = stestr run --serial --slowest {posargs}
|
OS_TEST_PATH=./zaqar/tests/functional
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
commands =
|
commands =
|
||||||
@ -45,48 +40,49 @@ commands =
|
|||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
setenv =
|
setenv =
|
||||||
{[testenv]setenv}
|
{[testenv]setenv}
|
||||||
PYTHON=coverage run --source zaqar --parallel-mode
|
PYTHON=coverage run --source zaqar --parallel-mode
|
||||||
commands =
|
commands =
|
||||||
{[testenv]commands}
|
{[testenv]commands}
|
||||||
coverage combine
|
coverage combine
|
||||||
coverage html -d cover
|
coverage html -d cover
|
||||||
coverage xml -o cover/coverage.xml
|
coverage xml -o cover/coverage.xml
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
deps =
|
deps =
|
||||||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/doc/requirements.txt
|
-r{toxinidir}/doc/requirements.txt
|
||||||
commands =
|
commands =
|
||||||
sphinx-build -W -b html doc/source doc/build/html
|
sphinx-build -W -b html doc/source doc/build/html
|
||||||
|
|
||||||
[testenv:api-ref]
|
[testenv:api-ref]
|
||||||
# This environment is called from CI scripts to test and publish
|
# This environment is called from CI scripts to test and publish
|
||||||
# the API Ref to docs.openstack.org.
|
# the API Ref to docs.openstack.org.
|
||||||
#
|
#
|
||||||
allowlist_externals = bash
|
allowlist_externals =
|
||||||
rm
|
bash
|
||||||
|
rm
|
||||||
deps =
|
deps =
|
||||||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||||
-r{toxinidir}/doc/requirements.txt
|
-r{toxinidir}/doc/requirements.txt
|
||||||
commands =
|
commands =
|
||||||
rm -rf api-ref/build
|
rm -rf api-ref/build
|
||||||
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
|
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
|
||||||
|
|
||||||
[testenv:debug]
|
[testenv:debug]
|
||||||
commands = oslo_debug_helper {posargs}
|
commands = oslo_debug_helper {posargs}
|
||||||
|
|
||||||
[testenv:releasenotes]
|
[testenv:releasenotes]
|
||||||
deps =
|
deps =
|
||||||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||||
-r{toxinidir}/doc/requirements.txt
|
-r{toxinidir}/doc/requirements.txt
|
||||||
commands =
|
commands =
|
||||||
doc8 releasenotes/source releasenotes/notes
|
doc8 releasenotes/source releasenotes/notes
|
||||||
sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
exclude = .venv*,.git,.tox,dist,doc,*lib/python*,*.egg,.update-venv
|
exclude = .venv*,.git,.tox,dist,doc,*lib/python*,*.egg,.update-venv
|
||||||
|
Loading…
x
Reference in New Issue
Block a user