Add tests for docs 28/73728/3
authorTaseer Ahmed <taseer94@gmail.com>
Wed, 4 Jul 2018 07:30:44 +0000 (12:30 +0500)
committerTaseer Ahmed <taseer94@gmail.com>
Fri, 6 Jul 2018 18:08:17 +0000 (23:08 +0500)
Ansible-ODL docs are being moved to its own repository. For now,
docs build and linkcheck tests are added.

JIRA: INTPAK-190

Change-Id: I4bc1a2fa9f8755b67a5339d7cf6c0234542e4787
Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
tox.ini

diff --git a/tox.ini b/tox.ini
index a24a36befe02fc9472f0eba563aa41de005f46ee..87b6296c9aabfd02b025205ac2552a518876af18 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,12 +1,20 @@
 [tox]
 minversion = 1.6.0
-envlist = coala, ansible-lint
+envlist = coala, ansible-lint, docs, docs-linkcheck
 skipsdist = true
 
 [testenv:ansible-lint]
 deps = ansible-lint
 commands = ansible-lint examples/all_defaults_playbook.yml
 
+[testenv:docs]
+deps = lfdocs-conf
+commands = sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/html
+
+[testenv:docs-linkcheck]
+deps = lfdocs-conf
+commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/linkcheck
+
 [testenv:coala]
 basepython = python3
 deps =