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: I4748f9e7787d4fe053ad095d88eec83682b4df7f
This commit is contained in:
Sean McGinnis 2018-03-21 16:27:54 -05:00
parent a32bd447fa
commit a629c5e275
1 changed files with 4 additions and 1 deletions

View File

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