summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.zuul.yaml1
-rw-r--r--tox.ini27
2 files changed, 28 insertions, 0 deletions
diff --git a/.zuul.yaml b/.zuul.yaml
index 7051aee..dc27661 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -1,3 +1,4 @@
1- project: 1- project:
2 templates: 2 templates:
3 - python35-charm-jobs 3 - python35-charm-jobs
4 - openstack-cover-jobs
diff --git a/tox.ini b/tox.ini
index 5cf4c46..6342c7b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -25,6 +25,33 @@ basepython = python3
25deps = -r{toxinidir}/test-requirements.txt 25deps = -r{toxinidir}/test-requirements.txt
26commands = flake8 {posargs} . unit_tests 26commands = flake8 {posargs} . unit_tests
27 27
28[testenv:cover]
29# Technique based heavily upon
30# https://github.com/openstack/nova/blob/master/tox.ini
31basepython = python3
32deps = -r{toxinidir}/test-requirements.txt
33setenv =
34 {[testenv]setenv}
35 PYTHON=coverage run
36commands =
37 coverage erase
38 ostestr {posargs}
39 coverage combine
40 coverage html -d cover
41 coverage xml -o cover/coverage.xml
42 coverage report
43
44[coverage:run]
45branch = True
46concurrency = multiprocessing
47parallel = True
48source =
49 .
50omit =
51 .tox/*
52 */charmhelpers/*
53 unit_tests/*
54
28[testenv:venv] 55[testenv:venv]
29basepython = python3 56basepython = python3
30commands = {posargs} 57commands = {posargs}