Add cover into zuul check
Change-Id: I00e6860674b165c9b6f7a33838df2a5e39444a42
This commit is contained in:
parent
54cc2951f2
commit
05c917b365
|
@ -22,3 +22,6 @@ doc/build
|
|||
# pbr generates these
|
||||
AUTHORS
|
||||
ChangeLog
|
||||
|
||||
.coverage
|
||||
cover/
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
|
||||
- project:
|
||||
templates:
|
||||
- openstack-cover-jobs
|
||||
- openstack-python3-train-jobs
|
||||
check:
|
||||
jobs:
|
||||
|
|
14
tox.ini
14
tox.ini
|
@ -73,3 +73,17 @@ commands = bandit -r kolla_cli
|
|||
[testenv:docs]
|
||||
basepython = python3
|
||||
commands = ./builddocs.sh
|
||||
|
||||
[testenv:cover]
|
||||
basepython = python3
|
||||
setenv = VIRTUAL_ENV={envdir}
|
||||
NOSE_WITH_COVERAGE=1
|
||||
NOSE_COVER_BRANCHES=1
|
||||
NOSE_COVER_HTML=1
|
||||
NOSE_COVER_HTML_DIR={toxinidir}/cover
|
||||
PYTHON=coverage run --source kolla_cli --parallel-mode
|
||||
commands =
|
||||
stestr run {posargs}
|
||||
coverage combine
|
||||
coverage html -d cover
|
||||
coverage xml -o cover/coverage.xml
|
||||
|
|
Loading…
Reference in New Issue