Add cover into zuul check

Change-Id: I00e6860674b165c9b6f7a33838df2a5e39444a42
This commit is contained in:
gujin 2019-07-11 13:48:51 +08:00
parent 54cc2951f2
commit 05c917b365
3 changed files with 18 additions and 0 deletions

3
.gitignore vendored
View File

@ -22,3 +22,6 @@ doc/build
# pbr generates these
AUTHORS
ChangeLog
.coverage
cover/

View File

@ -38,6 +38,7 @@
- project:
templates:
- openstack-cover-jobs
- openstack-python3-train-jobs
check:
jobs:

14
tox.ini
View File

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