Add linkchecker to check for broken links 44/71644/3
authorThanh Ha <thanh.ha@linuxfoundation.org>
Tue, 1 May 2018 21:59:50 +0000 (17:59 -0400)
committerJamo Luhrsen <jluhrsen@redhat.com>
Wed, 2 May 2018 17:49:30 +0000 (17:49 +0000)
Change-Id: Iff5f296de60f02c5aab3b4dc9991f0acc76d1a34
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
tox.ini

diff --git a/tox.ini b/tox.ini
index 87b76855771c117307f33d4fb24012b92a09dd72..a9684ffc778fbbfcf78f61e36664cdd074e59b5c 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
 [tox]
 minversion = 1.6.0
-envlist = docs,coala,pkg_unittests
+envlist = docs,docs-linkcheck,coala,pkg_unittests
 skipsdist = true
 
 [testenv:coala]
@@ -24,6 +24,10 @@ commands =
     echo "Generated docs available in {envtmpdir}/html"
 whitelist_externals = echo
 
+[testenv:docs-linkcheck]
+deps = -rdocs/requirements.txt
+commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {envtmpdir}/linkcheck
+
 [testenv:pkg_unittests]
 # TODO: Support Python 3
 #basepython = python3