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 90a8a09..e5ceb65 100644
--- a/tox.ini
+++ b/tox.ini
@@ -30,6 +30,33 @@ basepython = python3
30deps = -r{toxinidir}/test-requirements.txt 30deps = -r{toxinidir}/test-requirements.txt
31commands = flake8 {posargs} 31commands = flake8 {posargs}
32 32
33[testenv:cover]
34# Technique based heavily upon
35# https://github.com/openstack/nova/blob/master/tox.ini
36basepython = python3
37deps = -r{toxinidir}/test-requirements.txt
38setenv =
39 {[testenv]setenv}
40 PYTHON=coverage run
41commands =
42 coverage erase
43 ostestr {posargs}
44 coverage combine
45 coverage html -d cover
46 coverage xml -o cover/coverage.xml
47 coverage report
48
49[coverage:run]
50branch = True
51concurrency = multiprocessing
52parallel = True
53source =
54 .
55omit =
56 .tox/*
57 */charmhelpers/*
58 unit_tests/*
59
33[testenv:venv] 60[testenv:venv]
34basepython = python3 61basepython = python3
35commands = {posargs} 62commands = {posargs}