Update tox.ini to work with tox 4
This change will allow this repo to pass zuul now that this has merged: https://review.opendev.org/c/zuul/zuul-jobs/+/866943 Tox 4 deprecated whitelist_externals. Replace whitelist_externals with allowlist_externals Removed the 'build' target from zuul which just invokes the devstack script which is un-supported. Partial-Bug: #2000399 Signed-off-by: Al Bailey <al.bailey@windriver.com> Change-Id: I59bd7c82c297e12969e31b5de9ac02d2a47834a6
This commit is contained in:
parent
ea4d279e4b
commit
13b24042a1
14
.zuul.yaml
14
.zuul.yaml
@ -12,7 +12,6 @@
|
||||
- openstack-tox-linters
|
||||
- openstack-tox-pep8
|
||||
- fault-tox-pylint
|
||||
- stx-fault-build
|
||||
- fault-rest-api-py27
|
||||
- fault-rest-api-py39
|
||||
gate:
|
||||
@ -26,19 +25,6 @@
|
||||
jobs:
|
||||
- stx-fault-upload-git-mirror
|
||||
|
||||
|
||||
# Perform just a build
|
||||
- job:
|
||||
name: stx-fault-build
|
||||
parent: tox
|
||||
description: Run build for fault
|
||||
irrelevant-files:
|
||||
- api-ref/*
|
||||
- docs/*
|
||||
- releasenotes/*
|
||||
vars:
|
||||
tox_envlist: build
|
||||
|
||||
- job:
|
||||
name: flock-devstack-fault
|
||||
parent: flock-devstack-base-min
|
||||
|
12
tox.ini
12
tox.ini
@ -21,7 +21,7 @@ setenv =
|
||||
VIRTUAL_ENV={envdir}
|
||||
LC_ALL=en_US.utf-8
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
whitelist_externals = bash
|
||||
allowlist_externals = bash
|
||||
commands =
|
||||
bash -c 'if [ -d {toxinidir}/../zuul-jobs ]; then \
|
||||
find . \
|
||||
@ -33,7 +33,7 @@ commands =
|
||||
|
||||
[testenv:linters]
|
||||
basepython = python3
|
||||
whitelist_externals = bash
|
||||
allowlist_externals = bash
|
||||
commands =
|
||||
bash -c "find {toxinidir} \
|
||||
-not \( -type d -name .?\* -prune \) \
|
||||
@ -120,7 +120,7 @@ deps = -r{toxinidir}/doc/requirements.txt
|
||||
commands =
|
||||
rm -rf doc/build
|
||||
sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html
|
||||
whitelist_externals = rm
|
||||
allowlist_externals = rm
|
||||
|
||||
[testenv:releasenotes]
|
||||
basepython = python3
|
||||
@ -128,7 +128,7 @@ deps = -r{toxinidir}/doc/requirements.txt
|
||||
commands =
|
||||
rm -rf releasenotes/build
|
||||
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
||||
whitelist_externals =
|
||||
allowlist_externals =
|
||||
rm
|
||||
reno
|
||||
|
||||
@ -146,7 +146,7 @@ deps =
|
||||
commands =
|
||||
rm -rf api-ref/build
|
||||
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
|
||||
whitelist_externals = rm
|
||||
allowlist_externals = rm
|
||||
|
||||
[testenv:build]
|
||||
deps =
|
||||
@ -154,7 +154,7 @@ commands = {toxinidir}/devstack/build.sh
|
||||
|
||||
[testenv:functional]
|
||||
basepython = python3
|
||||
whitelist_externals = cat
|
||||
allowlist_externals = cat
|
||||
commands = cat /etc/fm/fm.conf
|
||||
|
||||
[testenv:bandit]
|
||||
|
Loading…
Reference in New Issue
Block a user