113 lines
2.1 KiB
INI
113 lines
2.1 KiB
INI
[tox]
|
|
minversion = 4
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
OS_STDOUT_CAPTURE=1
|
|
OS_STDERR_CAPTURE=1
|
|
OS_TEST_TIMEOUT=160
|
|
PYTHONDONTWRITEBYTECODE=1
|
|
passenv =
|
|
KUBECONFIG
|
|
ATMOSPHERE_*
|
|
|
|
[testenv:venv]
|
|
passenv =
|
|
ATMOSPHERE_*
|
|
OS_*
|
|
commands =
|
|
{posargs}
|
|
|
|
[testenv:linters]
|
|
skipsdist = True
|
|
deps =
|
|
pre-commit
|
|
commands =
|
|
pre-commit run --all-files --show-diff-on-failure
|
|
|
|
[testenv:py3]
|
|
deps =
|
|
pytest-ansible
|
|
commands =
|
|
pytest tests/unit
|
|
|
|
[testenv:molecule-venv]
|
|
passenv =
|
|
ATMOSPHERE_*
|
|
OS_*
|
|
deps =
|
|
molecule==24.9.0
|
|
ansible-compat==24.10.0
|
|
kubernetes
|
|
oslotest
|
|
stestr
|
|
testscenarios
|
|
commands =
|
|
molecule {posargs}
|
|
|
|
[testenv:molecule-keycloak]
|
|
deps =
|
|
{[testenv:molecule-venv]deps}
|
|
commands =
|
|
molecule test -s keycloak
|
|
|
|
[testenv:molecule-csi-{rbd,local-path-provisioner}]
|
|
deps =
|
|
{[testenv:molecule-venv]deps}
|
|
setenv =
|
|
rbd: MOLECULE_CSI_DRIVER = rbd
|
|
local-path-provisioner: MOLECULE_CSI_DRIVER = local-path-provisioner
|
|
commands =
|
|
molecule test -s csi
|
|
|
|
[testenv:molecule-aio-{openvswitch,ovn}]
|
|
deps =
|
|
{[testenv:molecule-venv]deps}
|
|
setenv =
|
|
openvswitch: ATMOSPHERE_NETWORK_BACKEND = openvswitch
|
|
ovn: ATMOSPHERE_NETWORK_BACKEND = ovn
|
|
commands =
|
|
molecule test -s aio {posargs}
|
|
|
|
[testenv:docs]
|
|
envdir = {toxworkdir}/docs
|
|
deps =
|
|
-r{toxinidir}/doc/requirements.txt
|
|
allowlist_externals =
|
|
rm
|
|
skip_install = true
|
|
commands =
|
|
rm -rf doc/build/html doc/build/doctrees
|
|
sphinx-build -W --keep-going -b html -j auto doc/source doc/build/html
|
|
|
|
[testenv:docs-serve]
|
|
envdir = {[testenv:docs]envdir}
|
|
deps = {[testenv:docs]deps}
|
|
allowlist_externals = {[testenv:docs]allowlist_externals}
|
|
skip_install = {[testenv:docs]skip_install}
|
|
commands =
|
|
rm -rf doc/build/html doc/build/doctrees
|
|
sphinx-autobuild doc/source doc/build/html
|
|
|
|
[testenv:build-manila-image]
|
|
deps =
|
|
diskimage-builder==3.28.0
|
|
setuptools
|
|
allowlist_externals =
|
|
bash
|
|
commands =
|
|
bash {toxinidir}/build/build-manila-image.sh
|
|
|
|
[testenv:helm-unittest]
|
|
commands =
|
|
python3 {toxinidir}/hack/helm-unittest.py
|
|
|
|
[testenv:generate-releasenotes]
|
|
skip_install = true
|
|
deps =
|
|
reno
|
|
commands =
|
|
reno report --output {toxinidir}/CHANGELOG.rst
|