File tree Expand file tree Collapse file tree 1 file changed +30
-13
lines changed Expand file tree Collapse file tree 1 file changed +30
-13
lines changed Original file line number Diff line number Diff line change 1
1
[tox]
2
- minversion = 1.8
2
+ minversion = 3.18
3
3
envlist = bashate,docs,build,test
4
- skipsdist = True
5
4
6
5
[testenv]
7
6
basepython = python3
8
7
envdir = {toxworkdir}/venv
9
8
setenv = VIRTUAL_ENV ={envdir}
10
- passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY DIB_* CLOUD_INIT_DATASOURCES OCTAVIA_REPO_PATH
9
+ passenv =
10
+ http_proxy
11
+ HTTP_PROXY
12
+ https_proxy
13
+ HTTPS_PROXY
14
+ no_proxy
15
+ NO_PROXY
16
+ DIB_*
17
+ CLOUD_INIT_DATASOURCES
18
+ OCTAVIA_REPO_PATH
11
19
install_command = pip install -U {opts} {packages}
12
20
deps = -r{toxinidir}/requirements.txt
13
21
-r{toxinidir}/test-requirements.txt
14
- whitelist_externals = virt-filesystems
15
- virt-inspector
16
- awk
17
- mkdir
18
- rm
22
+ allowlist_externals =
23
+ virt-filesystems
24
+ virt-inspector
25
+ awk
26
+ mkdir
27
+ rm
19
28
20
29
[testenv:docs]
21
30
commands = doc8 README.rst ../elements/haproxy-octavia/README.rst ../elements/root-passwd/README.rst
22
31
23
32
[testenv:bashate]
24
- commands = bashate diskimage-create.sh
25
- bashate image-tests.sh
33
+ commands =
34
+ bashate diskimage-create.sh
35
+ bashate image-tests.sh
26
36
27
37
[testenv:build]
28
38
# NOTE: specify cache directory explicitly with -c as the `diskimage-create.sh`
29
39
# default is based off of `$HOME` which is not passed on in a `tox` environment.
30
- commands = ./diskimage-create.sh -o {toxinidir}/amphora-x64-haproxy -w {toxworkdir} -c {toxworkdir}/.cache
40
+ commands =
41
+ ./diskimage-create.sh -o {toxinidir}/amphora-x64-haproxy -w {toxworkdir} -c {toxworkdir}/.cache
42
+ allowlist_externals =
43
+ ./diskimage-create.sh
44
+
31
45
32
46
[testenv:test]
33
47
# Work around tox limitations with command pipes
34
48
# https://bitbucket.org/hpk42/tox/issue/73/pipe-output-of-command-into-file
35
- commands = ./image-tests.sh {toxinidir}/.amp_tox_test
36
- rm -rf {toxinidir}/.amp_tox_test
49
+ commands =
50
+ ./image-tests.sh {toxinidir}/.amp_tox_test
51
+ rm -rf {toxinidir}/.amp_tox_test
52
+ allowlist_externals =
53
+ ./image-tests.sh
You can’t perform that action at this time.
0 commit comments