From 89cdc72aafc6a46168c1f0cdbd1ce7b6a8c44ba6 Mon Sep 17 00:00:00 2001 From: huangshan Date: Mon, 14 May 2018 16:15:46 +0800 Subject: [PATCH] Fix docs build in tox.ini This patch is to ensure the old files are not left over when running these document builds. Change-Id: I1234a6be4c7f33522c4ad803be9bc4f4777ed102 --- tox.ini | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index d84274256..e46ce0e37 100644 --- a/tox.ini +++ b/tox.ini @@ -29,7 +29,9 @@ commands = diff-cover --fail-under 100 --compare-branch master coverage.xml [testenv:releasenotes] -commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html +commands = + rm -rf releasenotes/build + sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [testenv:pep8] sitepackages = False @@ -71,12 +73,14 @@ whitelist_externals = rm # This environment is called from CI scripts to test and publish # the API Guide to developer.openstack.org. commands = + rm -rf api-guide/build sphinx-build -W -b html -d api-guide/build/doctrees api-guide/source api-guide/build/html [testenv:api-ref] # This environment is called from CI scripts to test and publish # the API Ref to developer.openstack.org. commands = + rm -rf api-ref/build sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html [testenv:functional]