Remove Genius documentation link
[docs.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index a4ac27f35257a3824defbf5c1c8fad599210b05a..69e2c714c35d6f6991a44b2d0a2ddc7c187d20e2 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
 [tox]
 minversion = 1.6
-envlist = pre-commit,gitlint,docs,docs-linkcheck
+envlist = pre-commit,gitlint,docs,docs-linkcheck,spelling
 skipsdist = true
 
 [testenv:docs]
@@ -53,5 +53,8 @@ deps =
     -rdocs/requirements.txt
     sphinxcontrib-spelling
     PyEnchant
-commands = sphinx-build -b spelling -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/spelling
+whitelist_externals = sh
+commands =
+    sh -c 'command enchant>/dev/null || command enchant-2 -v>/dev/null || sudo yum -y install enchant || (echo "enchant command not found - please install it (e.g. sudo apt-get install enchant | yum install enchant )" >&2 && exit 1)'
+    sphinx-build -q -W -b spelling -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/spelling