From 1b39899c459b2fcec032e04c47549dc77821b538 Mon Sep 17 00:00:00 2001 From: Naohiro Tamura Date: Fri, 27 Nov 2015 10:52:24 +0900 Subject: [PATCH] force releasenotes warnings to be treated as errors This patch applies the instruction in [1] to ensure that the release notes render properly and without warnings by adding "-W" to the sphinx-build line in tox.ini so that Sphinx can treat warnings as errors. [1] [openstack-dev] [release] better linting of release notes http://lists.openstack.org/pipermail/openstack-dev/2015-November/080521.html Change-Id: I64c05014e88a48b6336ce92c87da47dbe34b20d8 --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 08869bdbd7..fd42389035 100644 --- a/tox.ini +++ b/tox.ini @@ -59,7 +59,7 @@ commands = python setup.py build_sphinx [testenv:releasenotes] -commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html +commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [testenv:venv] setenv = PYTHONHASHSEED=0