Fail Sphinx build even on warnings 81/10181/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 20 Apr 2018 18:43:32 +0000 (14:43 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 20 Apr 2018 18:44:06 +0000 (14:44 -0400)
Change-Id: Id1ee90c2a463567c4cc8f7fd770c1b622d0f6ee0
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
tox.ini

diff --git a/tox.ini b/tox.ini
index 37194c3..858337a 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -21,11 +21,11 @@ commands =
 [testenv:docs]
 deps = -rrequirements.txt
 commands =
-    sphinx-build -b html -n -W -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
+    sphinx-build -W -b html -n -W -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
     echo "Generated docs available in {toxinidir}/docs/_build/html"
 whitelist_externals = echo
 
 [testenv:docs-linkcheck]
 deps = -rrequirements.txt
-commands = sphinx-build -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck
+commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck