summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.com>2018-09-07 12:15:51 +0200
committerAndreas Jaeger <aj@suse.com>2018-09-07 13:52:24 +0200
commit0444336f6a7576fc903bf263df9186de6614db46 (patch)
treee71421ad18a6048d267f5c50e3f4b59d67c58c09
parente7b3ff20019dcde3796665eea7d5a1867e568630 (diff)
downloadoslo-i18n-0444336f6a7576fc903bf263df9186de6614db46.tar.gz
Use templates for cover and lower-constraints
Use openstack-tox-cover template, this runs the cover job as non-voting in the check queue only. Use openstack-lower-constraints-jobs template Remove jobs that are part of the templates. Sort list of templates. Fix cover invocation in tox.ini. Change-Id: I3edb3d275a078b3be30c9a6f339fab9321601ec8
-rw-r--r--.zuul.yaml21
-rw-r--r--tox.ini9
2 files changed, 15 insertions, 15 deletions
diff --git a/.zuul.yaml b/.zuul.yaml
index d96381f..a97bdb4 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -1,20 +1,13 @@
- project:
- check:
- jobs:
- - openstack-tox-lower-constraints
- gate:
- jobs:
- - openstack-tox-lower-constraints
templates:
- - openstack-python-jobs
- - openstack-python35-jobs
- - publish-openstack-docs-pti
- check-requirements
- lib-forward-testing
- lib-forward-testing-python3
- - release-notes-jobs-python3
- - periodic-stable-jobs
+ - openstack-cover-jobs
+ - openstack-lower-constraints-jobs
+ - openstack-python-jobs
+ - openstack-python35-jobs
- openstack-python36-jobs
- post:
- jobs:
- - openstack-tox-cover
+ - periodic-stable-jobs
+ - publish-openstack-docs-pti
+ - release-notes-jobs-python3
diff --git a/tox.ini b/tox.ini
index ffe0684..c4db5e2 100644
--- a/tox.ini
+++ b/tox.ini
@@ -32,7 +32,14 @@ commands = python setup.py build_sphinx
[testenv:cover]
basepython = python3
-commands = python setup.py test --coverage --coverage-package-name=oslo_i18n --testr-args='{posargs}'
+setenv =
+ PYTHON=coverage run --source oslo_i18n --parallel-mode
+commands =
+ stestr run '{posargs}'
+ coverage combine
+ coverage html -d cover
+ coverage xml -o cover/coverage.xml
+
[flake8]
# E123, E125 skipped as they are invalid PEP-8.