Make tox.ini compatible with recent tox versions

Change-Id: Idd269aba375ca31a24d5012da03214dc882e4014
This commit is contained in:
Takashi Kajinami 2024-01-26 12:46:39 +09:00
parent 66126c2a77
commit 61b2b86652

10
tox.ini
View File

@ -1,6 +1,6 @@
[tox] [tox]
envlist = pep8 envlist = pep8
minversion = 1.6 minversion = 3.18.0
skipsdist = True skipsdist = True
[testenv] [testenv]
@ -24,20 +24,26 @@ commands = sphinx-build -W -d doc/build/doctrees -b html doc/source/ doc/build/h
commands = commands =
flake8 {posargs} flake8 {posargs}
{toxinidir}/tools/run_bashate.sh {toxinidir}/tools/run_bashate.sh
allowlist_externals =
{toxinidir}/tools/run_bashate.sh
[testenv:venv] [testenv:venv]
commands = {posargs} commands = {posargs}
[testenv:buildimage] [testenv:buildimage]
commands = manila-image-create {posargs} commands = {toxinidir}/bin/manila-image-create {posargs}
deps = deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt -r{toxinidir}/requirements.txt
passenv = * passenv = *
allowlist_externals =
{toxinidir}/bin/manila-image-create
[testenv:buildimage-docker] [testenv:buildimage-docker]
commands = {toxinidir}/tools/docker_builder.sh commands = {toxinidir}/tools/docker_builder.sh
passenv = * passenv = *
allowlist_externals =
{toxinidir}/tools/docker_builder.sh
[flake8] [flake8]
show-source = true show-source = true