Update the URL to the upper-constraints file to point to the redirect rule on releases.openstack.org so that anyone working on this branch will switch to the correct upper-constraints list automatically when the requirements repository branches. Until the requirements repository has as stable/2024.1 branch, tests will continue to use the upper-constraints list on master. Depends-On: https://review.opendev.org/c/openstack/grenade/+/914690 Depends-On: https://review.opendev.org/c/openstack/grenade/+/914687 Depends-On: https://review.opendev.org/c/openstack/grenade/+/914685 Change-Id: I4c8c19571ee45606f7ba548119ab601eb874d771
40 lines
949 B
INI
40 lines
949 B
INI
[tox]
|
|
envlist = bashate
|
|
minversion = 3.18.0
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps =
|
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/2024.1}
|
|
-r{toxinidir}/test-requirements.txt
|
|
passenv = GENERATE_GRENADE_PLUGIN_LIST
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:bashate]
|
|
commands =
|
|
bash -c "ls *.sh prep-* stop-* upgrade-* from-*/upgrade-* functions | xargs bashate -v {posargs}"
|
|
|
|
[testenv:docs]
|
|
allowlist_externals = bash
|
|
deps =
|
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/2024.1}
|
|
-r{toxinidir}/doc/requirements.txt
|
|
setenv =
|
|
TOP_DIR={toxinidir}
|
|
INSTALL_SHOCCO=true
|
|
commands =
|
|
sphinx-build -W -b html doc/source doc/build/html
|
|
bash tools/build_docs.sh
|
|
|
|
[testenv:pdf-docs]
|
|
deps = {[testenv:docs]deps}
|
|
allowlist_externals =
|
|
make
|
|
commands =
|
|
sphinx-build -W -b latex doc/source doc/build/pdf
|
|
make -C doc/build/pdf
|