Make toxworkdir configurable and default to /tmp/v
[releng/global-jjb.git] / tox.ini
1 [tox]
2 minversion = 1.6
3 envlist = coala,ensure-documented,jjb,jjb-compare-xml,license
4 skipsdist = true
5 passenv = TOX_WORK_DIR
6 toxworkdir = {env:TOX_WORK_DIR:/tmp/v}
7
8 [testenv:coala]
9 basepython = python3
10 deps =
11     coala
12     coala-bears
13     # Markdown lint requires nodejs
14     nodeenv==1.1.2
15 commands =
16     nodeenv -p
17     npm install --global remark-cli remark-lint write-good
18     python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
19     coala --non-interactive
20
21 [testenv:docs]
22 deps = -rrequirements.txt
23 commands =
24     sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
25
26 [testenv:ensure-documented]
27 commands =
28     ./ensure-documented.sh
29
30 [testenv:jjb]
31 deps =
32     jenkins-job-builder>=2.0.5
33 commands =
34     jenkins-jobs -l DEBUG test --recursive -o {toxinidir}/archives/job-configs {toxinidir}/jjb:{toxinidir}/.jjb-test
35
36 [testenv:jjb-compare-xml]
37 deps =
38     jenkins-job-builder
39 commands =
40     ./jjb-compare-xml.sh
41
42 [testenv:license]
43 deps = lftools
44 commands = lftools license check-dir -r '.+' shell
45
46 #########
47 # Tools #
48 #########
49
50 [testenv:jenkins-jobs]
51 deps =
52     jenkins-job-builder{env:JJB_VERSION_OP:~=}{env:JJB_VERSION:2.0.9}
53 commands =
54     jenkins-jobs {posargs:--help}
55
56 [testenv:lftools]
57 deps = lftools{env:LFTOOLS_VERSION_OP:~=}{env:LFTOOLS_VERSION:0.13.0}
58 commands = lftools {posargs:--help}
59
60 [testenv:openstack]
61 deps = python-openstackclient{env:OPENSTACK_VERSION_OP:~=}{env:OPENSTACK_VERSION:3.15.0}
62 commands = openstack {posargs:--help}
63
64 [testenv:reno]
65 deps = reno{env:RENO_VERSION_OP:~=}{env:RENO_VERSION:2.9.1}
66 commands = reno {posargs:--help}