From ce8030f2517971d34fcad38bd9fe366faf9697df Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Mon, 18 Jan 2016 12:42:27 -0800 Subject: [PATCH] Remove releasenotes/build between releasenotes runs Just like in the docs target, we should remove the releasenotes/build directory between runs of the releasenotes target to avoid stale sphinx results corrupting the current run results. Change-Id: Ia9e0409344671e04148308e08c26e8796227f0f7 Closes-Bug: #1534640 --- tox.ini | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 4f3944047f..6cb85b29ca 100644 --- a/tox.ini +++ b/tox.ini @@ -138,7 +138,9 @@ commands = {[testenv:docs]commands} commands = bandit -c bandit.yaml -r nova -n 5 -ll [testenv:releasenotes] -commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html +commands = + rm -rf releasenotes/build + sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [flake8] # E125 is deliberately excluded. See https://github.com/jcrocholl/pep8/issues/126