Pin more-itertools~=5.0.0
[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 deps = -rrequirements.txt
36 commands =
37     sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
38
39 [testenv:ensure-documented]
40 commands =
41     ./ensure-documented.sh
42
43 [testenv:jjb]
44 deps =
45     jenkins-job-builder==2.8.0
46 commands =
47     jenkins-jobs -l DEBUG test --recursive -o {toxinidir}/archives/job-configs {toxinidir}/jjb:{toxinidir}/.jjb-test
48
49 [testenv:jjb-compare-xml]
50 deps =
51     jenkins-job-builder
52 commands =
53     ./jjb-compare-xml.sh
54
55 [testenv:jjb-latest]
56 deps =
57     jenkins-job-builder
58 commands =
59     jenkins-jobs -l DEBUG test --recursive -o {toxinidir}/archives/job-configs {toxinidir}/jjb:{toxinidir}/.jjb-test
60
61 [testenv:jjb-version]
62 commands = python {toxinidir}/check_jjb_version.py
63
64 [testenv:license]
65 deps = lftools
66 commands = lftools license check-dir -r '.+' shell
67
68 [testenv:pre-commit]
69 deps =
70     more-itertools~=5.0.0
71     pre-commit
72 commands =
73     pre-commit run --all-files
74
75 #########
76 # Tools #
77 #########
78
79 [testenv:jenkins-jobs]
80 deps =
81     jenkins-job-builder{env:JJB_VERSION_OP:~=}{env:JJB_VERSION:2.8.0}
82 commands =
83     jenkins-jobs {posargs:--help}
84
85 [testenv:lftools]
86 deps = lftools{env:LFTOOLS_VERSION_OP:~=}{env:LFTOOLS_VERSION:0.13.0}
87 commands = lftools {posargs:--help}
88
89 [testenv:openstack]
90 deps = python-openstackclient{env:OPENSTACK_VERSION_OP:~=}{env:OPENSTACK_VERSION:3.15.0}
91 commands = openstack {posargs:--help}
92
93 [testenv:reno]
94 deps = reno{env:RENO_VERSION_OP:~=}{env:RENO_VERSION:2.10.0}
95 commands = reno {posargs:--help}