Enable openstack-cover-jobs in zuul check for cyborg

In this U version, Improve UT for important Cyborg module is
an important task.

It is necessary to add openstack-cover-jobs to zuul. This way
we can easily view the unit test coverage of each file.

such as nova:
https://github.com/openstack/nova/blob/master/.zuul.yaml#L374

Change-Id: I854a51a2105628c5e5e9c30282e0f4b259c33ed3
This commit is contained in:
chenke 2019-10-24 20:34:12 +08:00
parent a835765471
commit 9dcbbb33bc
3 changed files with 5 additions and 1 deletions

2
.gitignore vendored
View File

@ -31,6 +31,8 @@ doc/build/*
doc/source/api/*
api-ref/build/*
cover
AUTHORS
Authors
ChangeLog

View File

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

View File

@ -66,12 +66,13 @@ commands = {posargs}
[testenv:cover]
basepython = python3
setenv =
PYTHON=coverage run --source $project --parallel-mode
PYTHON=coverage run --source cyborg --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report
[doc8]
ignore-path = .venv,.git,.tox,*cyborg/locale*,*lib/python*,*cyborg.egg*,api-ref/build,doc/build,doc/source/contributor/api