Make sure that jjb-cleanup.sh allows unbound vars
[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 skipsdist = true
12 passenv = TOX_WORK_DIR
13 toxworkdir = {env:TOX_WORK_DIR:/tmp/v}
14
15 [testenv:coala]
16 basepython = python3
17 deps =
18     coala
19     coala-bears
20     # Markdown lint requires nodejs
21     nodeenv==1.1.2
22 commands =
23     nodeenv -p
24     npm install --global remark-cli remark-lint write-good
25     python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
26     coala --non-interactive
27
28 [testenv:docs]
29 deps = -rrequirements.txt
30 commands =
31     sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
32
33 [testenv:ensure-documented]
34 commands =
35     ./ensure-documented.sh
36
37 [testenv:jjb]
38 deps =
39     jenkins-job-builder==2.2.1
40 commands =
41     jenkins-jobs -l DEBUG test --recursive -o {toxinidir}/archives/job-configs {toxinidir}/jjb:{toxinidir}/.jjb-test
42
43 [testenv:jjb-compare-xml]
44 deps =
45     jenkins-job-builder
46 commands =
47     ./jjb-compare-xml.sh
48
49 [testenv:jjb-latest]
50 deps =
51     jenkins-job-builder
52 commands =
53     jenkins-jobs -l DEBUG test --recursive -o {toxinidir}/archives/job-configs {toxinidir}/jjb:{toxinidir}/.jjb-test
54
55 [testenv:jjb-version]
56 commands = python {toxinidir}/check_jjb_version.py
57
58 [testenv:license]
59 deps = lftools
60 commands = lftools license check-dir -r '.+' shell
61
62 #########
63 # Tools #
64 #########
65
66 [testenv:jenkins-jobs]
67 deps =
68     jenkins-job-builder{env:JJB_VERSION_OP:~=}{env:JJB_VERSION:2.0.9}
69 commands =
70     jenkins-jobs {posargs:--help}
71
72 [testenv:lftools]
73 deps = lftools{env:LFTOOLS_VERSION_OP:~=}{env:LFTOOLS_VERSION:0.13.0}
74 commands = lftools {posargs:--help}
75
76 [testenv:openstack]
77 deps = python-openstackclient{env:OPENSTACK_VERSION_OP:~=}{env:OPENSTACK_VERSION:3.15.0}
78 commands = openstack {posargs:--help}
79
80 [testenv:reno]
81 deps = reno{env:RENO_VERSION_OP:~=}{env:RENO_VERSION:2.9.1}
82 commands = reno {posargs:--help}