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:
parent
1a8837b9d2
commit
517f1646d0
5
tox.ini
5
tox.ini
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user