Clean old output before new doc builds

Remove the doc/build directory to make sure there are no stale
artifacts from past runs.

Change-Id: Icd65eab77928d78ae775adbea03c8cf537b5adc1
This commit is contained in:
Sean McGinnis 2018-03-21 16:10:29 -05:00
parent 7c16543e4f
commit 94c8bf7f58
1 changed files with 4 additions and 1 deletions

View File

@ -20,8 +20,11 @@ commands =
commands = {posargs}
[testenv:docs]
whitelist_externals = rm
deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -W -b html doc/source doc/build/html
commands =
rm -fr doc/build
sphinx-build -W -b html doc/source doc/build/html
[testenv:cover]
commands = python setup.py test --coverage --coverage-package-name=oslo_utils --testr-args='{posargs}'