summaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini16
1 files changed, 11 insertions, 5 deletions
diff --git a/tox.ini b/tox.ini
index 9b94ee72..55a9e847 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,7 +1,11 @@
[tox]
minversion = 2.5
skipsdist = True
-envlist = pep8,py27
+envlist =
+ pep8,
+ py27,
+ docs,
+ docs-linkcheck
[testenv]
basepython=python2
@@ -34,10 +38,12 @@ ignore = E123,E125,H803,E722
exclude = .tox,dist,docs,*egg,build,.venv,.git
[testenv:docs]
+deps = -rdocs/requirements.txt
commands =
- touch ./docs/index.rst
- - wget -q -nc https://raw.githubusercontent.com/opnfv/opnfvdocs/master/etc/requirements.txt -O ./docs/requirements.txt
- pip install -r ./docs/requirements.txt
- pip install sphinx_opnfv_theme
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 = -rdocs/requirements.txt
+commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck