diff --git a/tox.ini b/tox.ini index 8d9475f..a9aa3f0 100644 --- a/tox.ini +++ b/tox.ini @@ -6,6 +6,8 @@ skipsdist = True [testenv] usedevelop = True install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages} +whitelist_externals = find + rm setenv = VIRTUAL_ENV={envdir} BRANCH_NAME=master @@ -21,7 +23,11 @@ commands = flake8 commands = {posargs} [testenv:cover] -commands = python setup.py test --coverage --testr-args='{posargs}' +commands = + coverage erase + find . -type f -name "*.pyc" -delete + python setup.py test --coverage --testr-args='{posargs}' + coverage report [testenv:py27] commands = @@ -30,7 +36,8 @@ commands = doc8 doc/source [testenv:docs] -commands = python setup.py build_sphinx +commands = rm -rf doc/build + python setup.py build_sphinx [testenv:debug] commands = oslo_debug_helper {posargs}