Merge "Add workaround for pre-commit 2.10.0"
[releng/global-jjb.git] / tox.ini
1 [tox]
2 minversion = 1.6
3 envlist =
4   ensure-documented,
5   jjb,
6   jjb-compare-xml,
7   jjb-latest,
8   jjb-version,
9   license,
10   pre-commit
11 skipsdist = True
12
13 [testenv:docs]
14 basepython = python3
15 deps = -rrequirements.txt
16 commands =
17     sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
18
19 [testenv:ensure-documented]
20 commands =
21     ./ensure-documented.sh
22
23 [testenv:jjb]
24 basepython = python3
25 deps =
26     jenkins-job-builder==2.8.0
27 commands =
28     jenkins-jobs -l DEBUG test --recursive -o {toxinidir}/archives/job-configs {toxinidir}/jjb:{toxinidir}/.jjb-test
29
30 [testenv:jjb-compare-xml]
31 basepython = python3
32 deps =
33     jenkins-job-builder
34 commands =
35     ./jjb-compare-xml.sh
36
37 [testenv:jjb-latest]
38 basepython = python3
39 deps =
40     jenkins-job-builder
41 commands =
42     jenkins-jobs -l DEBUG test --recursive -o {toxinidir}/archives/job-configs {toxinidir}/jjb:{toxinidir}/.jjb-test
43
44 [testenv:jjb-version]
45 basepython = python3
46 commands = python {toxinidir}/check_jjb_version.py
47
48 [testenv:license]
49 deps = lftools
50 commands = lftools license check-dir -r '.+' shell
51
52 [testenv:pre-commit]
53 basepython = python3
54 deps =
55     pre-commit
56 commands =
57     pre-commit run --all-files --show-diff-on-failure
58     pre-commit run gitlint --hook-stage commit-msg --commit-msg-filename .git/COMMIT_EDITMSG
59
60 #########
61 # Tools #
62 #########
63
64 [testenv:jenkins-jobs]
65 deps =
66     jenkins-job-builder{env:JJB_VERSION_OP:~=}{env:JJB_VERSION:2.8.0}
67 commands =
68     jenkins-jobs {posargs:--help}
69
70 [testenv:lftools]
71 deps = lftools{env:LFTOOLS_VERSION_OP:~=}{env:LFTOOLS_VERSION:0.13.0}
72 commands = lftools {posargs:--help}
73
74 [testenv:openstack]
75 deps = python-openstackclient{env:OPENSTACK_VERSION_OP:~=}{env:OPENSTACK_VERSION:3.15.0}
76 commands = openstack {posargs:--help}
77
78 [testenv:reno]
79 deps = reno{env:RENO_VERSION_OP:~=}{env:RENO_VERSION:2.10.0}
80 commands = reno {posargs:--help}