Merge "treat doc build warnings as errors"

This commit is contained in:
Zuul 2018-02-07 21:52:51 +00:00 committed by Gerrit Code Review
commit 98a20e9c29
2 changed files with 2 additions and 4 deletions

View File

@ -43,6 +43,7 @@ storyboard.plugin.scheduler =
token-cleaner = storyboard.plugin.token_cleaner.cleaner:TokenCleaner
[build_sphinx]
warning-is-error = 1
source-dir = doc/source
build-dir = doc/build
all_files = 1

View File

@ -28,10 +28,7 @@ deps = -r{toxinidir}/doc/requirements.txt
commands =
rm -rf doc/html doc/build
rm -rf doc/source/apidoc doc/source/api
# NOTE(dhellmann): We cannot use -W with sphinx-build because the
# wsme.sphinxext registers a directive that is already registered
# and that warning causes the build to exit.
sphinx-build -b html doc/source doc/build/html
sphinx-build -W -b html doc/source doc/build/html
[testenv:cover]
commands = python setup.py testr --coverage --testr-args='{posargs}'