@@ -29,6 +29,11 @@ deps =
29
29
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
30
30
-r{toxinidir}/requirements.txt
31
31
-r{toxinidir}/test-requirements.txt
32
+ extras =
33
+ powervm
34
+ zvm
35
+ hyperv
36
+ vmware
32
37
passenv =
33
38
OS_DEBUG GENERATE_HASHES
34
39
# there is also secret magic in subunit-trace which lets you run in a fail only
@@ -42,16 +47,17 @@ commands =
42
47
description =
43
48
Run type checks.
44
49
envdir = {toxworkdir}/shared
50
+ extras =
45
51
commands =
46
52
bash tools/mypywrap.sh {posargs}
47
53
48
54
[testenv:pep8]
49
55
description =
50
56
Run style checks.
51
- envdir = {toxworkdir}/shared
52
57
deps =
53
58
{[testenv]deps}
54
59
autopep8
60
+ extras =
55
61
commands =
56
62
{[testenv:mypy]commands}
57
63
# check if autopep8 would alter the formatting but don't actually change it
@@ -68,6 +74,7 @@ commands =
68
74
bash -c ' ! find doc/ -type f -name *.json | xargs -t -n1 python -m json.tool 2>&1 > /dev/null | grep -B1 -v ^python'
69
75
70
76
[testenv:autopep8]
77
+ extras =
71
78
deps = autopep8
72
79
commands =
73
80
autopep8 --exit-code --max-line-length =79 --in-place -r nova doc setup.py
@@ -76,6 +83,7 @@ commands =
76
83
description =
77
84
Run style checks on the changes made since HEAD~. For a full run including docs, use ' pep8'
78
85
envdir = {toxworkdir}/shared
86
+ extras =
79
87
commands =
80
88
bash tools/flake8wrap.sh -HEAD
81
89
@@ -84,6 +92,7 @@ description =
84
92
Determine whether a backport is ready to be merged by checking whether it has
85
93
already been merged to master or more recent stable branches.
86
94
deps =
95
+ extras =
87
96
skipsdist = true
88
97
commands =
89
98
bash tools/check-cherry-picks.sh
@@ -108,6 +117,7 @@ description =
108
117
deps =
109
118
{[testenv]deps}
110
119
openstack-placement>=1.0.0
120
+ extras =
111
121
commands =
112
122
stestr --test-path =./nova/tests/functional run {posargs}
113
123
stestr slowest
@@ -116,20 +126,23 @@ commands =
116
126
description =
117
127
Run functional tests using python3.6.
118
128
deps = {[testenv:functional]deps}
129
+ extras =
119
130
commands =
120
131
{[testenv:functional]commands}
121
132
122
133
[testenv:functional-py37]
123
134
description =
124
135
Run functional tests using python3.7.
125
136
deps = {[testenv:functional]deps}
137
+ extras =
126
138
commands =
127
139
{[testenv:functional]commands}
128
140
129
141
[testenv:functional-py38]
130
142
description =
131
143
Run functional tests using python3.8.
132
144
deps = {[testenv:functional]deps}
145
+ extras =
133
146
commands =
134
147
{[testenv:functional]commands}
135
148
@@ -140,13 +153,15 @@ description =
140
153
placement-nova-tox-functional-py38 job which is defined and
141
154
run in placement.
142
155
deps = {[testenv:functional]deps}
156
+ extras =
143
157
commands =
144
158
stestr --test-path =./nova/tests/functional run --exclude-regex ' ((?:api|notification)_sample_tests|functional\. db\. )' {posargs}
145
159
146
160
[testenv:functional-py39]
147
161
description =
148
162
Run functional tests using python3.9.
149
163
deps = {[testenv:functional]deps}
164
+ extras =
150
165
commands =
151
166
{[testenv:functional]commands}
152
167
@@ -157,17 +172,20 @@ setenv =
157
172
GENERATE_SAMPLES =True
158
173
PYTHONHASHSEED =0
159
174
deps = {[testenv:functional]deps}
175
+ extras =
160
176
commands =
161
177
stestr --test-path =./nova/tests/functional/api_sample_tests run {posargs}
162
178
stestr slowest
163
179
164
180
[testenv:genconfig]
165
181
envdir = {toxworkdir}/shared
182
+ extras =
166
183
commands =
167
184
oslo-config-generator --config-file =etc/nova/nova-config-generator.conf
168
185
169
186
[testenv:genpolicy]
170
187
envdir = {toxworkdir}/shared
188
+ extras =
171
189
commands =
172
190
oslopolicy-sample-generator --config-file =etc/nova/nova-policy-generator.conf
173
191
@@ -180,6 +198,7 @@ envdir = {toxworkdir}/shared
180
198
setenv =
181
199
{[testenv]setenv}
182
200
PYTHON =coverage run --source nova --parallel-mode
201
+ extras =
183
202
commands =
184
203
coverage erase
185
204
stestr run {posargs}
@@ -190,13 +209,15 @@ commands =
190
209
191
210
[testenv:debug]
192
211
envdir = {toxworkdir}/shared
212
+ extras =
193
213
commands =
194
214
oslo_debug_helper {posargs}
195
215
196
216
[testenv:venv]
197
217
deps =
198
218
{[testenv]deps}
199
219
-r{toxinidir}/doc/requirements.txt
220
+ extras =
200
221
commands =
201
222
{posargs}
202
223
@@ -208,6 +229,7 @@ description =
208
229
deps =
209
230
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
210
231
-r{toxinidir}/doc/requirements.txt
232
+ extras =
211
233
commands =
212
234
rm -rf doc/build/html doc/build/doctrees
213
235
sphinx-build -W --keep-going -b html -j auto doc/source doc/build/html
@@ -219,6 +241,7 @@ description =
219
241
Build PDF documentation.
220
242
envdir = {toxworkdir}/docs
221
243
deps = {[testenv:docs]deps}
244
+ extras =
222
245
commands =
223
246
rm -rf doc/build/pdf
224
247
sphinx-build -W --keep-going -b latex -j auto doc/source doc/build/pdf
@@ -229,6 +252,7 @@ description =
229
252
Generate the API guide. Called from CI scripts to test and publish to docs.openstack.org.
230
253
envdir = {toxworkdir}/docs
231
254
deps = {[testenv:docs]deps}
255
+ extras =
232
256
commands =
233
257
rm -rf api-guide/build
234
258
sphinx-build -W --keep-going -b html -j auto api-guide/source api-guide/build/html
@@ -238,6 +262,7 @@ description =
238
262
Generate the API ref. Called from CI scripts to test and publish to docs.openstack.org.
239
263
envdir = {toxworkdir}/docs
240
264
deps = {[testenv:docs]deps}
265
+ extras =
241
266
commands =
242
267
rm -rf api-ref/build
243
268
sphinx-build -W --keep-going -b html -j auto api-ref/source api-ref/build/html
@@ -247,6 +272,7 @@ description =
247
272
Generate release notes.
248
273
envdir = {toxworkdir}/docs
249
274
deps = {[testenv:docs]deps}
275
+ extras =
250
276
commands =
251
277
rm -rf releasenotes/build
252
278
sphinx-build -W --keep-going -b html -j auto releasenotes/source releasenotes/build/html
@@ -256,6 +282,7 @@ description =
256
282
Build all documentation including API guides and refs.
257
283
envdir = {toxworkdir}/docs
258
284
deps = {[testenv:docs]deps}
285
+ extras =
259
286
commands =
260
287
{[testenv:docs]commands}
261
288
{[testenv:api-guide]commands}
@@ -266,6 +293,7 @@ commands =
266
293
# NOTE(browne): This is required for the integration test job of the bandit
267
294
# project. Please do not remove.
268
295
envdir = {toxworkdir}/shared
296
+ extras =
269
297
commands = bandit -r nova -x tests -n 5 -ll
270
298
271
299
[flake8]
@@ -358,6 +386,7 @@ paths =
358
386
# explicitly to avoid unnecessarily installing the checked-out repo too
359
387
usedevelop = False
360
388
deps = bindep
389
+ extras =
361
390
commands =
362
391
bindep test
363
392
0 commit comments