Fail Sphinx build even on warnings 82/10182/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 20 Apr 2018 18:45:46 +0000 (14:45 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 20 Apr 2018 18:45:46 +0000 (14:45 -0400)
Change-Id: I935e57b4536f58eb71b49d6558fefc170d50a8da
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
tox.ini

diff --git a/tox.ini b/tox.ini
index d1b18f9..f5071c2 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -31,13 +31,13 @@ commands =
 [testenv:docs]
 deps = -rrequirements-docs.txt
 commands =
-    sphinx-build -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
+    sphinx-build -W -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 = -rrequirements-docs.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
 
 [testenv:license]
 deps =