Remove build files before run tox doc builder

This may cause build failed if the old build file still existed.
This patch is to remove build files before run tox releasenotes
and docs builder.

Change-Id: Ia36abd03727ff3d71c6c24a71dcd4b5f7dbf9f77
This commit is contained in:
junboli 2017-08-22 16:13:13 +08:00
parent 1a8837b9d2
commit 517f1646d0

View File

@ -59,10 +59,13 @@ basepython = python2.7
setenv = PYTHONHASHSEED=0
commands =
doc8 doc/source
rm -rf doc/build
python setup.py build_sphinx
[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
[testenv:api-ref]
# This environment is called from CI scripts to test and publish