From a629c5e27532a9dc9d3b9708ef94a5267131b724 Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Wed, 21 Mar 2018 16:27:54 -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: I4748f9e7787d4fe053ad095d88eec83682b4df7f --- tox.ini | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 244772f6..4cdc4946 100644 --- a/tox.ini +++ b/tox.ini @@ -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}'