Use openstack-tox-cover template

Use openstack-tox-cover template, this runs the cover job as
non-voting in the check queue only.

Remove jobs and use template instead.

Add cover tox.ini environment - this job never worked before.

Change-Id: I9652aed41bc21bafc10e8c4a046d52bfb9681bdc
This commit is contained in:
Andreas Jaeger 2018-09-07 12:22:17 +02:00
parent a9eb87c436
commit 7b9d447eb8
2 changed files with 13 additions and 3 deletions

View File

@ -28,6 +28,7 @@
- project:
templates:
- openstack-cover-jobs
- openstack-python-jobs
- openstack-python35-jobs
- openstack-python36-jobs
@ -40,6 +41,3 @@
jobs:
- cloudkittyclient-devstack-functional:
voting: true
post:
jobs:
- openstack-tox-cover

12
tox.ini
View File

@ -12,6 +12,18 @@ deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = stestr run {posargs}
[testenv:cover]
basepython = python3
setenv =
VIRTUAL_ENV={envdir}
PYTHON=coverage run --source cloudkittyclient --parallel-mode
commands =
stestr run '{posargs}'
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report
[testenv:debug]
basepython = python3
commands = oslo_debug_helper {posargs}