-
Notifications
You must be signed in to change notification settings - Fork 29
/
tox.ini
119 lines (105 loc) · 2.24 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
[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:pin-digests]
deps =
oslo_config
oslo_log
ruyaml
commands =
python3 {toxinidir}/build/pin-images.py roles/defaults/vars/main.yml roles/defaults/vars/main.yml
[testenv:linters]
skipsdist = True
deps =
pre-commit
commands =
pre-commit run --all-files --show-diff-on-failure
python3 {toxinidir}/build/lint-jobs.py
[testenv:py3]
deps =
pytest-ansible
commands =
pytest tests/unit
[testenv:molecule-venv]
passenv =
ATMOSPHERE_*
OS_*
deps =
molecule==24.9.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 =
ATMOSPHERE_DEBUG = false
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
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}
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
allowlist_externals =
bash
commands =
bash {toxinidir}/build/build-manila-image.sh
[testenv:promtool-test]
skip_install = true
deps =
PyYAML
rjsonnet
commands =
python3 {toxinidir}/hack/promtool-test.py
[testenv:helm-unittest]
commands =
python3 {toxinidir}/hack/helm-unittest.py