From f4eba826135078f838248f0ba272989d4e7c3c1f Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Fri, 20 Apr 2018 14:45:46 -0400 Subject: [PATCH] Fail Sphinx build even on warnings Change-Id: I935e57b4536f58eb71b49d6558fefc170d50a8da Signed-off-by: Thanh Ha --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index d1b18f98..f5071c26 100644 --- 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 = -- 2.16.6