Fix releasenotes build in tox

This patch is to ensure the old files are not left over
when running these document builds.

Change-Id: Ia69f470e8cfb1a830b08f0076547465cf6cf624a
This commit is contained in:
huangshan 2018-05-22 18:44:04 +08:00
parent 90c2f6d9f7
commit f8ec935b0f
1 changed files with 4 additions and 1 deletions

View File

@ -148,7 +148,10 @@ deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
-r{toxinidir}/requirements.txt
-r{toxinidir}/doc/requirements.txt
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
whitelist_externals = rm
commands =
rm -rf releasenotes/build
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
# If you are running the tests locally you should set the env variable
# TEMPEST_CONFIG_DIR=/opt/stack/tempest/etc