Fix rtd merge job to handle new tag uploaded
[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 passenv = TOX_WORK_DIR
14 toxworkdir = {env:TOX_WORK_DIR:/tmp/v}
15
16 [testenv:coala]
17 basepython = python3
18 deps =
19     coala
20     coala-bears
21     pygments~=2.3.1
22     # request-2.22.0 does not work with python-3.4.9
23     requests~=2.21.0
24     # Markdown lint requires nodejs
25     nodeenv
26     # numpy-1.17.0 requires python 3.5
27     numpy~=1.16.4
28 commands =
29     nodeenv -p
30     npm install --global remark-cli remark-lint write-good
31     python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
32     coala --non-interactive
33
34 [testenv:docs]
35 basepython = python3
36 deps = -rrequirements.txt
37 commands =
38     sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
39
40 [testenv:ensure-documented]
41 commands =
42     ./ensure-documented.sh
43
44 [testenv:jjb]
45 basepython = python3
46 deps =
47     jenkins-job-builder==2.8.0
48 commands =
49     jenkins-jobs -l DEBUG test --recursive -o {toxinidir}/archives/job-configs {toxinidir}/jjb:{toxinidir}/.jjb-test
50
51 [testenv:jjb-compare-xml]
52 basepython = python3
53 deps =
54     jenkins-job-builder
55 commands =
56     ./jjb-compare-xml.sh
57
58 [testenv:jjb-latest]
59 basepython = python3
60 deps =
61     jenkins-job-builder
62 commands =
63     jenkins-jobs -l DEBUG test --recursive -o {toxinidir}/archives/job-configs {toxinidir}/jjb:{toxinidir}/.jjb-test
64
65 [testenv:jjb-version]
66 basepython = python3
67 commands = python {toxinidir}/check_jjb_version.py
68
69 [testenv:license]
70 deps = lftools
71 commands = lftools license check-dir -r '.+' shell
72
73 [testenv:pre-commit]
74 basepython = python3
75 deps =
76     pre-commit
77 commands =
78     pre-commit run --all-files
79
80 #########
81 # Tools #
82 #########
83
84 [testenv:jenkins-jobs]
85 deps =
86     jenkins-job-builder{env:JJB_VERSION_OP:~=}{env:JJB_VERSION:2.8.0}
87 commands =
88     jenkins-jobs {posargs:--help}
89
90 [testenv:lftools]
91 deps = lftools{env:LFTOOLS_VERSION_OP:~=}{env:LFTOOLS_VERSION:0.13.0}
92 commands = lftools {posargs:--help}
93
94 [testenv:openstack]
95 deps = python-openstackclient{env:OPENSTACK_VERSION_OP:~=}{env:OPENSTACK_VERSION:3.15.0}
96 commands = openstack {posargs:--help}
97
98 [testenv:reno]
99 deps = reno{env:RENO_VERSION_OP:~=}{env:RENO_VERSION:2.10.0}
100 commands = reno {posargs:--help}