Merge "Update coverage environment and use template for cover"
This commit is contained in:
commit
367ac2f7c0
|
@ -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
10
tox.ini
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue