From d5249d0f056d9633f486d853196514fb4f13cc6d Mon Sep 17 00:00:00 2001 From: Tin Lam Date: Wed, 13 Jun 2018 23:33:56 -0500 Subject: [PATCH] chore(tox): update tox.ini This patch set adds command to clean releasenote prior to building releasenotes. This also clean up unnecessary whitelist command. Change-Id: Ib9439235a24132111a56a9e35f0c9640d2892f5e Signed-off-by: Tin Lam --- tox.ini | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 4fbea41e..80880a48 100644 --- a/tox.ini +++ b/tox.ini @@ -13,7 +13,6 @@ usedevelop = True install_command = pip install {opts} {packages} whitelist_externals = find - flake8 rm commands = find . -type f -name "*.pyc" -delete @@ -45,7 +44,9 @@ commands = [testenv:releasenotes] basepython = python3 deps = -r{toxinidir}/doc/requirements.txt -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] basepython = python3