[tox]
minversion = 1.6
-envlist = pre-commit,gitlint,docs,docs-linkcheck
+envlist = pre-commit,gitlint,docs,docs-linkcheck,spelling
skipsdist = true
[testenv:docs]
-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