summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorSean McGinnis <sean.mcginnis@huawei.com>2018-03-21 16:10:29 -0500
committerSean McGinnis <sean.mcginnis@huawei.com>2018-03-21 16:12:44 -0500
commit94c8bf7f58a416aaf5dec88ed96dd4dc956ba1ac (patch)
treeb4bb6e73b6b4e0d167a2c67503de012b506a099d /tox.ini
parent7c16543e4fad64123eb0b18a6dc35b6e0eaae164 (diff)
downloadoslo-utils-94c8bf7f58a416aaf5dec88ed96dd4dc956ba1ac.tar.gz
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
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini5
1 files changed, 4 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 3821309..947f6e2 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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}'