Ensure the old files before build

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

Change-Id: Ifb0db4bd2c6962f3d84418e9e924f8a783696dcb
This commit is contained in:
Lucky 2018-05-21 18:36:04 +08:00 committed by yfzhao
parent 205281ec0d
commit 8f52e569cc

View File

@ -42,7 +42,9 @@ 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 -W -b html doc/source doc/build/html
commands =
rm -rf doc/build
sphinx-build -W -b html doc/source doc/build/html
[testenv:cover]
commands =
@ -121,7 +123,9 @@ 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 -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
commands =
rm -rf releasenotes/build
sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:venv]
commands = {posargs}