From: Jeremy Stanley Date: Wed, 2 May 2018 01:09:59 +0000 (+0000) Subject: Clean build directory in tox docs environment X-Git-Tag: 0.0.1~88 X-Git-Url: https://mudpy.org/gitweb?a=commitdiff_plain;h=583340affc338fae2d6517deb722e578a309afc9;p=mudpy.git Clean build directory in tox docs environment To avoid accumulating deleted cruft in generated documentation, remove the build directory prior to running sphinx-build. --- diff --git a/tox.ini b/tox.ini index 00cbe22..ebe9f1b 100644 --- a/tox.ini +++ b/tox.ini @@ -18,10 +18,10 @@ deps = -r{toxinidir}/test-requirements.txt commands = python setup.py test --slowest --testr-args='{posargs}' [testenv:docs] -deps = - -r{toxinidir}/requirements.txt - -r{toxinidir}/doc/requirements.txt +whitelist_externals = rm +deps = -r{toxinidir}/doc/requirements.txt commands = + rm -fr doc/build sphinx-build -W -d doc/build/doctrees -b html doc/source/ doc/build/html [testenv:flake8]