CI: make docs jobs logs more quiet
[releng/builder.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index 9277b269b97f4acf535415d1cc08b1db19baafb7..4ab7773a42e8c4bf815c0bfa7779c99bbc052283 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,11 +1,17 @@
 [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 =
@@ -18,7 +24,7 @@ commands = python {toxinidir}/check_jjb_version.py
 
 [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
@@ -30,3 +36,12 @@ commands = python {toxinidir}/check_prefix.py
 [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