From 3584879e2a1eb8e97e41463a46335910ae55e101 Mon Sep 17 00:00:00 2001 From: Andrey Kurilin Date: Wed, 30 Dec 2015 21:34:32 +0200 Subject: [PATCH] [Docs] Remove _build directory before main cmd `tox -edocs` doesn't work as expected if ./docs/source/_build dir exists. Change-Id: Ibe37590e0c9cbb1de06a488407bb9596120d87e7 --- tox.ini | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 64924946bc..ca71da8866 100644 --- a/tox.ini +++ b/tox.ini @@ -9,12 +9,15 @@ setenv = VIRTUAL_ENV={envdir} LANGUAGE=en_US:en LC_ALL=C PYTHONHASHSEED=0 +whitelist_externals = find + rm + make deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt install_command = pip install -U {opts} {packages} usedevelop = True commands = - /usr/bin/find . -type f -name "*.pyc" -delete + find . -type f -name "*.pyc" -delete python setup.py testr --slowest --testr-args='{posargs}' distribute = false basepython = python2.7 @@ -41,7 +44,9 @@ commands = {toxinidir}/tests/ci/cover.sh {posargs} [testenv:docs] changedir = doc/source -commands = make html +commands = + rm -rf _build + make html [testenv:genconfig] commands =