3 envlist = docs,docs-linkcheck,jjb-version,pre-commit,prefix,robot
7 deps = -rdocs/requirements.txt
8 commands = sphinx-build -q -W -b html -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
10 [testenv:docs-linkcheck]
11 passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
13 deps = -rdocs/requirements.txt
14 commands = sphinx-build -q -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
16 [testenv:jenkins-jobs]
18 jenkins-job-builder=={env:JJB_VERSION:3.5.0}
20 jenkins-jobs {posargs:--help}
23 commands = python {toxinidir}/check_jjb_version.py
25 [testenv:pre-commit-install]
30 pre-commit install --hook-type commit-msg
32 [testenv:pre-commit-uninstall]
37 pre-commit uninstall --hook-type commit-msg
44 pre-commit run --all-files --show-diff-on-failure
45 pre-commit run gitlint --hook-stage commit-msg --commit-msg-filename .git/COMMIT_EDITMSG
46 # Gitlint only proposes a pre-commit configuration for the commit-msg stage but none for the commit stage.
47 # Its default arguments --passed and --msg-filename are different from CI recommandations.
48 # As a result, the line above is always skipped in jenkins CI since there cannot be a .git/COMMIT_EDITMSG file.
51 commands = python {toxinidir}/check_prefix.py
55 commands = python {toxinidir}/check_robot.py
57 [testenv:cut-branch-jobs]
63 python scripts/cut-branch-jobs.py {posargs:--help} {toxinidir}/jjb
64 - pre-commit run --all-files prettier