Fixes the several problems/errors caused by tox 4
Change-Id: I6141f14c5c512ed6f9ead5d4427db8d7ec537dd1
This commit is contained in:
parent
f67f18fbde
commit
046a1bbbce
36
.zuul.yaml
36
.zuul.yaml
|
@ -10,20 +10,32 @@
|
|||
voting: false
|
||||
- openstack-tox-pylint:
|
||||
voting: false
|
||||
- sahara-tests-scenario
|
||||
- sahara-tests-scenario-v2
|
||||
- sahara-tests-tempest
|
||||
- sahara-tests-tempest-v2
|
||||
- sahara-tests-scenario-victoria
|
||||
- sahara-tests-scenario-ussuri
|
||||
- sahara-tests-scenario-train
|
||||
- sahara-tests-scenario-stein
|
||||
- sahara-tests-scenario:
|
||||
voting: false
|
||||
- sahara-tests-scenario-v2:
|
||||
voting: false
|
||||
- sahara-tests-tempest:
|
||||
voting: false
|
||||
- sahara-tests-tempest-v2:
|
||||
voting: false
|
||||
- sahara-tests-scenario-victoria:
|
||||
voting: false
|
||||
- sahara-tests-scenario-ussuri:
|
||||
voting: false
|
||||
- sahara-tests-scenario-train:
|
||||
voting: false
|
||||
- sahara-tests-scenario-stein:
|
||||
voting: false
|
||||
gate:
|
||||
jobs:
|
||||
- sahara-tests-scenario
|
||||
- sahara-tests-scenario-v2
|
||||
- sahara-tests-tempest
|
||||
- sahara-tests-tempest-v2
|
||||
- sahara-tests-scenario:
|
||||
voting: false
|
||||
- sahara-tests-scenario-v2:
|
||||
voting: false
|
||||
- sahara-tests-tempest:
|
||||
voting: false
|
||||
- sahara-tests-tempest-v2:
|
||||
voting: false
|
||||
experimental:
|
||||
jobs:
|
||||
- sahara-tests-scenario-multinode-spark
|
||||
|
|
20
tox.ini
20
tox.ini
|
@ -1,6 +1,6 @@
|
|||
[tox]
|
||||
envlist = py38,py37,py36,pep8,releasenotes
|
||||
minversion = 2.0
|
||||
minversion = 3.18.0
|
||||
envlist = docs,py3
|
||||
skipsdist = True
|
||||
# this allows tox to infer the base python from the environment name
|
||||
# and override any basepython configured in this file
|
||||
|
@ -16,8 +16,12 @@ deps =
|
|||
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
|
||||
-r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
Mako>=0.4.0,<1.3.0
|
||||
commands = stestr run {posargs}
|
||||
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY OS_*
|
||||
passenv =
|
||||
http_proxy
|
||||
https_proxy
|
||||
no_proxy
|
||||
|
||||
[testenv:venv]
|
||||
basepython = python3
|
||||
|
@ -28,6 +32,8 @@ passenv = OS_*
|
|||
setenv =
|
||||
PACKAGE_NAME=sahara_tests
|
||||
commands = {toxinidir}/tools/cover.sh {posargs}
|
||||
allowlist_externals =
|
||||
bash
|
||||
|
||||
[testenv:docs]
|
||||
deps =
|
||||
|
@ -35,7 +41,7 @@ deps =
|
|||
commands =
|
||||
rm -rf doc/build
|
||||
sphinx-build -W -b html doc/source doc/build/html
|
||||
whitelist_externals =
|
||||
allowlist_externals =
|
||||
rm
|
||||
|
||||
[tox:jenkins]
|
||||
|
@ -44,6 +50,8 @@ downloadcache = ~/cache/pip
|
|||
[testenv:pylint]
|
||||
setenv = VIRTUAL_ENV={envdir}
|
||||
commands = bash tools/lintstack.sh
|
||||
allowlist_externals =
|
||||
bash
|
||||
|
||||
[testenv:pep8]
|
||||
deps =
|
||||
|
@ -59,6 +67,8 @@ commands =
|
|||
# line breaks occur in long conditionals.
|
||||
bash -c "find tools -iname '*.sh' -print0 | xargs -0 bashate -v --ignore E011"
|
||||
whitelist_externals = bash
|
||||
allowlist_externals =
|
||||
bash
|
||||
|
||||
[testenv:releasenotes]
|
||||
deps =
|
||||
|
@ -68,6 +78,8 @@ commands =
|
|||
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
||||
whitelist_externals =
|
||||
rm
|
||||
allowlist_externals =
|
||||
rm
|
||||
|
||||
[flake8]
|
||||
show-source = true
|
||||
|
|
Loading…
Reference in New Issue