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