From 94c8bf7f58a416aaf5dec88ed96dd4dc956ba1ac Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Wed, 21 Mar 2018 16:10:29 -0500 Subject: [PATCH] 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 --- tox.ini | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 38213093..947f6e20 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}'