Remove doc/build when building docs

Wipe out the existing doc/build when rebuilding the docs.

Change-Id: Idd7f6dc171425402b8d7ff7962dc09e7c576986b
This commit is contained in:
Matt Riedemann 2018-06-15 10:00:05 -04:00
parent 7907528256
commit 7759b4b46d
1 changed files with 5 additions and 2 deletions

View File

@ -7,8 +7,10 @@ skipsdist = True
[testenv]
usedevelop = True
# tox is silly... these need to be separated by a newline....
whitelist_externals = find
bash
whitelist_externals =
find
bash
rm
passenv = ZUUL_CACHE_DIR
REQUIREMENTS_PIP_LOCATION
install_command = pip install {opts} {packages}
@ -46,6 +48,7 @@ deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/doc/requirements.txt
commands =
rm -rf doc/build
sphinx-build -b html doc/source doc/build/html
[testenv:releasenotes]