Fix OS_CLOUD export for image validation
[releng/global-jjb.git] / tox.ini
1 [tox]
2 minversion = 1.6
3 envlist =
4   coala,
5   ensure-documented,
6   jjb,
7   jjb-compare-xml,
8   jjb-latest,
9   jjb-version,
10   license,
11   pre-commit
12 skipsdist = True
13
14 [testenv:coala]
15 basepython = python3
16 deps =
17     coala
18     coala-bears
19     pygments
20     requests
21     nodeenv
22     numpy
23 commands =
24     nodeenv -p
25     npm install --global remark-cli remark-lint write-good
26     coala --non-interactive
27
28 [testenv:docs]
29 basepython = python3
30 deps = -rrequirements.txt
31 commands =
32     sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
33
34 [testenv:ensure-documented]
35 commands =
36     ./ensure-documented.sh
37
38 [testenv:jjb]
39 basepython = python3
40 deps =
41     jenkins-job-builder==2.8.0
42 commands =
43     jenkins-jobs -l DEBUG test --recursive -o {toxinidir}/archives/job-configs {toxinidir}/jjb:{toxinidir}/.jjb-test
44
45 [testenv:jjb-compare-xml]
46 basepython = python3
47 deps =
48     jenkins-job-builder
49 commands =
50     ./jjb-compare-xml.sh
51
52 [testenv:jjb-latest]
53 basepython = python3
54 deps =
55     jenkins-job-builder
56 commands =
57     jenkins-jobs -l DEBUG test --recursive -o {toxinidir}/archives/job-configs {toxinidir}/jjb:{toxinidir}/.jjb-test
58
59 [testenv:jjb-version]
60 basepython = python3
61 commands = python {toxinidir}/check_jjb_version.py
62
63 [testenv:license]
64 deps = lftools
65 commands = lftools license check-dir -r '.+' shell
66
67 [testenv:pre-commit]
68 basepython = python3
69 deps =
70     pre-commit
71 commands =
72     pre-commit run --all-files
73
74 #########
75 # Tools #
76 #########
77
78 [testenv:jenkins-jobs]
79 deps =
80     jenkins-job-builder{env:JJB_VERSION_OP:~=}{env:JJB_VERSION:2.8.0}
81 commands =
82     jenkins-jobs {posargs:--help}
83
84 [testenv:lftools]
85 deps = lftools{env:LFTOOLS_VERSION_OP:~=}{env:LFTOOLS_VERSION:0.13.0}
86 commands = lftools {posargs:--help}
87
88 [testenv:openstack]
89 deps = python-openstackclient{env:OPENSTACK_VERSION_OP:~=}{env:OPENSTACK_VERSION:3.15.0}
90 commands = openstack {posargs:--help}
91
92 [testenv:reno]
93 deps = reno{env:RENO_VERSION_OP:~=}{env:RENO_VERSION:2.10.0}
94 commands = reno {posargs:--help}