Updated git submodules
[docs.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index ee12e8ea750cc4a09155fb84d7ede57cc393d276..c8e73d6d4f3d5ea3cb28c02af21c03840631ddd2 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,8 +1,26 @@
 [tox]
 minversion = 1.6
-envlist = docs
+envlist = coala,docs
 skipsdist = true
 
+[testenv:coala]
+basepython = python3
+deps =
+    coala
+    coala-bears
+    nodeenv
+commands =
+    nodeenv -p
+    npm install --global remark-cli remark-lint
+    coala --non-interactive
+
 [testenv:docs]
-deps = sphinx
-commands = sphinx-build -b html -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/html
+deps = -rrequirements.txt
+commands =
+    sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
+    echo "Generated docs available in {toxinidir}/docs/_build/html"
+whitelist_externals = echo
+
+[testenv:docs-linkcheck]
+deps = -rrequirements.txt
+commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck