api-ref: Treat warnings as errors

With current Sphinx and os-api-ref, we can enable warnings and treat
them as errors in tox.ini again.

Change-Id: I9ac0301e16124d2759fb4f90f6509548f5de9780
This commit is contained in:
Andreas Jaeger 2017-03-04 19:03:24 +01:00
parent cbb700d54e
commit da34743089

View File

@ -75,10 +75,7 @@ envdir = {toxworkdir}/venv
commands = commands =
oslo-config-generator --config-file etc/zun/zun-config-generator.conf oslo-config-generator --config-file etc/zun/zun-config-generator.conf
# we do not used -W here because we are doing some slightly tricky
# things to build a single page document, and as such, we are ok
# ignoring the duplicate stanzas warning.
[testenv:api-ref] [testenv:api-ref]
commands = commands =
rm -rf api-ref/build rm -rf api-ref/build
sphinx-build -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html