Merge "Pin tox to be less than 4"

This commit is contained in:
Zuul
2023-01-13 15:17:45 +00:00
committed by Gerrit Code Review
2 changed files with 10 additions and 10 deletions

View File

@@ -1,5 +1,7 @@
--- ---
- project: - project:
vars:
ensure_tox_version: '<4'
templates: templates:
- stx-api-ref-jobs - stx-api-ref-jobs
check: check:

18
tox.ini
View File

@@ -29,24 +29,24 @@ commands =
git restore doc/source/dist_cloud/kubernetes/* git restore doc/source/dist_cloud/kubernetes/*
bash hw-updates.sh bash hw-updates.sh
bash htmlChecks.sh doc/build/html bash htmlChecks.sh doc/build/html
allowlist_externals = bash
# Note: The dev env for the docs team uses a version of tox that does not yet support allowlist_externals
whitelist_externals = bash
htmlChecks.sh htmlChecks.sh
get-remote-files.sh get-remote-files.sh
git git
# hw-updates.sh # hw-updates.sh
whitelist_externals = {[testenv:docs]allowlist_externals}
[testenv:api-ref] [testenv:api-ref]
deps = {[testenv:docs]deps} deps = {[testenv:docs]deps}
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
allowlist_externals = rm whitelist_externals = rm
whitelist_externals = {[testenv:api-ref]allowlist_externals}
[testenv:linters] [testenv:linters]
allowlist_externals = bash whitelist_externals = bash
whitelist_externals = {[testenv:linters]allowlist_externals}
commands = commands =
bash -c "find {toxinidir} \ bash -c "find {toxinidir} \
\( -name .tox -prune \) \ \( -name .tox -prune \) \
@@ -64,16 +64,14 @@ passenv=PWD
commands = commands =
bash -c "echo Running in {env:PWD}" bash -c "echo Running in {env:PWD}"
bash new-topic.sh {env:PWD} {toxinidir} bash new-topic.sh {env:PWD} {toxinidir}
allowlist_externals = new-topic.sh whitelist_externals = new-topic.sh
bash bash
whitelist_externals = {[testenv:newfile]allowlist_externals}
[testenv:picks] [testenv:picks]
commands = commands =
./pickCompare.sh ./pickCompare.sh
allowlist_externals = pickCompare.sh whitelist_externals = pickCompare.sh
bash bash
whitelist_externals = {[testenv:picks]allowlist_externals}
[testenv:linkcheck] [testenv:linkcheck]