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
This commit is contained in:
parent
adeb0bfe4c
commit
6144d8a3e6
4
tox.ini
4
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user