[tox]
minversion = 1.6
-envlist = docs,jjb-version,pre-commit,prefix,robot
+envlist = docs,docs-linkcheck,jjb-version,pre-commit,prefix,robot
skipsdist = true
[testenv:docs]
deps = -rdocs/requirements.txt
-commands = sphinx-build -b html -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
+commands = sphinx-build -q -W -b html -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
+
+[testenv:docs-linkcheck]
+passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
+basepython = python3
+deps = -rdocs/requirements.txt
+commands = sphinx-build -q -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
[testenv:jenkins-jobs]
deps =
[testenv:pre-commit]
basepython = python3
-deps = pre-commit
+deps = pre-commit==2.9.3
commands =
pre-commit install --hook-type commit-msg
pre-commit run --all-files --show-diff-on-failure
[testenv:robot]
basepython = python3
commands = python {toxinidir}/check_robot.py
+
+[testenv:cut-branch-jobs]
+basepython = python3
+deps =
+ pre-commit
+ ruamel.yaml
+commands =
+ python scripts/cut-branch-jobs.py {posargs:--help} {toxinidir}/jjb
+ - pre-commit run --all-files prettier