Enable option to fail build on warnings 02/75302/2
authorThanh Ha <thanh.ha@linuxfoundation.org>
Tue, 1 May 2018 16:07:40 +0000 (12:07 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Sat, 18 Aug 2018 04:55:41 +0000 (00:55 -0400)
Change-Id: Ibcc18962f6e5dc2c5da657d5e25f19728daecc8a
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
tox.ini

diff --git a/tox.ini b/tox.ini
index 545c22c9fa2fbd13face772f7643ff3c92ddddb5..f65fdce2cce98cc4356bfcff49df02e9449a6560 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -19,8 +19,8 @@ commands =
 [testenv:docs]
 deps = -rdocs/requirements.txt
 commands =
-    sphinx-build -j 4 -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
+    sphinx-build -j 4 -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
 
 [testenv:docs-linkcheck]
 deps = -rdocs/requirements.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