Merge "Update coverage environment and use template for cover"

This commit is contained in:
Zuul 2019-01-15 07:37:23 +00:00 committed by Gerrit Code Review
commit 367ac2f7c0
2 changed files with 9 additions and 2 deletions

View File

@ -1,6 +1,7 @@
- project:
templates:
- check-requirements
- openstack-cover-jobs
- openstack-python-jobs
- openstack-python35-jobs-nonvoting
- release-notes-jobs-python3

10
tox.ini
View File

@ -52,8 +52,14 @@ commands = {posargs}
[testenv:cover]
basepython = python3
commands = python setup.py test --coverage --testr-args='{posargs}'
coverage report
setenv =
VIRTUAL_ENV={envdir}
PYTHON=coverage run --source masakari --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
[testenv:docs]
basepython = python3