Merge "Fix UDPReplay VNF statistic parsing"
[yardstick.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index 313f1ec..0162284 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -44,6 +44,17 @@ commands =
 basepython = python3
 commands = {[testenv:functional]commands}
 
+[testenv:docs]
+deps = -rdocs/requirements.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 = -rdocs/requirements.txt
+commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
+
 [testenv:os-requirements]
 commands =
     python {toxinidir}/tools/os-requirements-check.py {envdir}