Pass multiple pattern args in logs-deploy.sh
[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     pygments~=2.3.1
21     # request-2.22.0 does not work with python-3.4.9
22     requests~=2.21.0
23     # Markdown lint requires nodejs
24     nodeenv
25 commands =
26     nodeenv -p
27     npm install --global remark-cli remark-lint write-good
28     python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
29     coala --non-interactive
30
31 [testenv:docs]
32 deps = -rrequirements.txt
33 commands =
34     sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
35
36 [testenv:ensure-documented]
37 commands =
38     ./ensure-documented.sh
39
40 [testenv:jjb]
41 deps =
42     jenkins-job-builder==2.8.0
43 commands =
44     jenkins-jobs -l DEBUG test --recursive -o {toxinidir}/archives/job-configs {toxinidir}/jjb:{toxinidir}/.jjb-test
45
46 [testenv:jjb-compare-xml]
47 deps =
48     jenkins-job-builder
49 commands =
50     ./jjb-compare-xml.sh
51
52 [testenv:jjb-latest]
53 deps =
54     jenkins-job-builder
55 commands =
56     jenkins-jobs -l DEBUG test --recursive -o {toxinidir}/archives/job-configs {toxinidir}/jjb:{toxinidir}/.jjb-test
57
58 [testenv:jjb-version]
59 commands = python {toxinidir}/check_jjb_version.py
60
61 [testenv:license]
62 deps = lftools
63 commands = lftools license check-dir -r '.+' shell
64
65 #########
66 # Tools #
67 #########
68
69 [testenv:jenkins-jobs]
70 deps =
71     jenkins-job-builder{env:JJB_VERSION_OP:~=}{env:JJB_VERSION:2.8.0}
72 commands =
73     jenkins-jobs {posargs:--help}
74
75 [testenv:lftools]
76 deps = lftools{env:LFTOOLS_VERSION_OP:~=}{env:LFTOOLS_VERSION:0.13.0}
77 commands = lftools {posargs:--help}
78
79 [testenv:openstack]
80 deps = python-openstackclient{env:OPENSTACK_VERSION_OP:~=}{env:OPENSTACK_VERSION:3.15.0}
81 commands = openstack {posargs:--help}
82
83 [testenv:reno]
84 deps = reno{env:RENO_VERSION_OP:~=}{env:RENO_VERSION:2.10.0}
85 commands = reno {posargs:--help}