Update RPM repo docs
[integration/packaging.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index 8ea75945743c523629234365dc5d005f5cb6ae0f..80b200bbe699e604c93dd2e4d071352faaaa542f 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
 [tox]
 minversion = 1.6.0
-envlist = docs,coala,pkg_unittests
+envlist = docs,docs-linkcheck,coala,pkg_unittests
 skipsdist = true
 
 [testenv:coala]
@@ -10,7 +10,7 @@ deps =
     coala-bears==0.11
     # Requests 2.16 breaks dependencies
     requests<2.16
-    nodeenv
+    nodeenv==1.1.2
 commands =
     nodeenv -p
     npm install --global dockerfile_lint remark-cli remark-lint write-good
@@ -18,8 +18,15 @@ commands =
     coala --non-interactive
 
 [testenv:docs]
-deps = sphinx
-commands = sphinx-build -b html -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/html
+deps = -rdocs/requirements.txt
+commands =
+    sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/html
+    echo "Generated docs available in {envtmpdir}/html"
+whitelist_externals = echo
+
+[testenv:docs-linkcheck]
+deps = -rdocs/requirements.txt
+commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/linkcheck
 
 [testenv:pkg_unittests]
 # TODO: Support Python 3