aboutsummaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorRex Lee <limingjiang@huawei.com>2018-10-17 03:26:58 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-10-17 03:26:58 +0000
commit622a85f72bea2679ef4849abb083616bff3da0e7 (patch)
tree14137bb7ab65d46b73c19f0e27850dec22580aaf /tox.ini
parentbb8a40544fdac7c9c5311b42993bf93f2d4da903 (diff)
parent7203ff5925b805d07a5df53b6cdcf7d44cc4e4d1 (diff)
Merge "[docs] Transition to local docs build job."
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini11
1 files changed, 11 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 313f1eca2..016228458 100644
--- 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}