Merge "Improving cover and docs testenv"

This commit is contained in:
Jenkins 2017-07-14 14:22:35 +00:00 committed by Gerrit Code Review
commit 549c4aaaaa
1 changed files with 9 additions and 2 deletions

11
tox.ini
View File

@ -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}