Single docker image with default feature
[integration/packaging.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index b14695d75379610f87a65c27ac151794b64eaea1..f4b65da8375e0f00dcd977ecad1fab5cbfe513c6 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -8,9 +8,10 @@ basepython = python3
 deps =
     coala==0.11
     coala-bears==0.11
+    pygments~=2.3.1
     # 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,12 +19,19 @@ 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
 #basepython = python3
 deps =
     -r{toxinidir}/packages/requirements.txt
-commands = python -m unittest packages.test_build
+commands = python -m unittest packages.test_lib