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
|
# pbr generates these
|
||||||
AUTHORS
|
AUTHORS
|
||||||
ChangeLog
|
ChangeLog
|
||||||
|
|
||||||
|
.coverage
|
||||||
|
cover/
|
||||||
|
|
|
@ -38,6 +38,7 @@
|
||||||
|
|
||||||
- project:
|
- project:
|
||||||
templates:
|
templates:
|
||||||
|
- openstack-cover-jobs
|
||||||
- openstack-python3-train-jobs
|
- openstack-python3-train-jobs
|
||||||
check:
|
check:
|
||||||
jobs:
|
jobs:
|
||||||
|
|
14
tox.ini
14
tox.ini
|
@ -73,3 +73,17 @@ commands = bandit -r kolla_cli
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
commands = ./builddocs.sh
|
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