Add gerrit add zuul bits

tox: Add missing coverage target.

Change-Id: Ic756fc9732aad3da21e5f6937a706560ef292078
This commit is contained in:
Frode Nordahl 2019-10-18 08:33:12 +02:00
parent f199ccefb4
commit f418ef90db
No known key found for this signature in database
GPG Key ID: 6A5D59A3BA48373F
4 changed files with 37 additions and 0 deletions

2
.gitignore vendored
View File

@ -5,3 +5,5 @@
build
.unit-state.db
*.swp
.coverage
cover

4
.gitreview Normal file
View File

@ -0,0 +1,4 @@
[gerrit]
host=review.opendev.org
port=29418
project=x/charm-interface-ovsdb.git

4
.zuul.yaml Normal file
View File

@ -0,0 +1,4 @@
- project:
templates:
- openstack-python3-train-jobs
- openstack-cover-jobs

27
tox.ini
View File

@ -30,6 +30,33 @@ basepython = python3
deps = -r{toxinidir}/test-requirements.txt
commands = flake8 {posargs}
[testenv:cover]
# Technique based heavily upon
# https://github.com/openstack/nova/blob/master/tox.ini
basepython = python3
deps = -r{toxinidir}/test-requirements.txt
setenv =
{[testenv]setenv}
PYTHON=coverage run
commands =
coverage erase
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report
[coverage:run]
branch = True
concurrency = multiprocessing
parallel = True
source =
.
omit =
.tox/*
*/charmhelpers/*
unit_tests/*
[testenv:venv]
commands = {posargs}