9a683a0e135f32bb3a312b7b8091409d24304a6c
[releng/builder.git] / tox.ini
1 [tox]
2 minversion = 1.6
3 envlist = docs,docs-linkcheck,jjb-version,pre-commit,prefix,robot
4 skipsdist = true
5
6 [testenv:docs]
7 deps = -rdocs/requirements.txt
8 commands = sphinx-build -W -b html -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
9
10 [testenv:docs-linkcheck]
11 passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
12 basepython = python3
13 deps = -rdocs/requirements.txt
14 commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
15
16 [testenv:jenkins-jobs]
17 deps =
18     jenkins-job-builder=={env:JJB_VERSION:3.5.0}
19 commands =
20     jenkins-jobs {posargs:--help}
21
22 [testenv:jjb-version]
23 commands = python {toxinidir}/check_jjb_version.py
24
25 [testenv:pre-commit]
26 basepython = python3
27 deps = pre-commit==2.9.3
28 commands =
29     pre-commit install --hook-type commit-msg
30     pre-commit run --all-files --show-diff-on-failure
31     pre-commit run gitlint --hook-stage commit-msg --commit-msg-filename .git/COMMIT_EDITMSG
32
33 [testenv:prefix]
34 commands = python {toxinidir}/check_prefix.py
35
36 [testenv:robot]
37 basepython = python3
38 commands = python {toxinidir}/check_robot.py
39
40 [testenv:cut-branch-jobs]
41 basepython = python3
42 deps =
43     pre-commit
44     ruamel.yaml
45 commands =
46     python scripts/cut-branch-jobs.py {posargs:--help} {toxinidir}/jjb
47     - pre-commit run --all-files prettier