From dd49f170301ba2410a5e5757d773f1939a7fabb2 Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Wed, 10 Oct 2018 20:06:32 +0000 Subject: [PATCH] Add coverage reports to py27/35/36 unit test jobs ...and drop openstack-cover-jobs since it is no longer necessary. Change-Id: Iad12e64f41bbdd8b8e005b0fb14a7e2108fa3bcf --- .zuul.yaml | 13 ++++++++++++- tools/playbooks/common/cover-post.yaml | 3 +++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 tools/playbooks/common/cover-post.yaml diff --git a/.zuul.yaml b/.zuul.yaml index 37f6957e2f..e284adec38 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -22,6 +22,10 @@ tools/test-setup.sh. vars: tox_envlist: py27 + tox_environment: + NOSE_COVER_HTML: 1 + NOSE_COVER_HTML_DIR: '{toxinidir}/cover' + post-run: tools/playbooks/common/cover-post.yaml - job: name: swift-tox-py27-centos-7 @@ -40,6 +44,10 @@ vars: tox_envlist: py35 bindep_profile: test py35 + tox_environment: + NOSE_COVER_HTML: 1 + NOSE_COVER_HTML_DIR: '{toxinidir}/cover' + post-run: tools/playbooks/common/cover-post.yaml - job: name: swift-tox-py36 @@ -54,6 +62,10 @@ vars: tox_envlist: py36 bindep_profile: test py36 + tox_environment: + NOSE_COVER_HTML: 1 + NOSE_COVER_HTML_DIR: '{toxinidir}/cover' + post-run: tools/playbooks/common/cover-post.yaml - job: name: swift-tox-func @@ -275,7 +287,6 @@ - project: templates: - - openstack-cover-jobs - publish-openstack-docs-pti - periodic-stable-jobs - check-requirements diff --git a/tools/playbooks/common/cover-post.yaml b/tools/playbooks/common/cover-post.yaml new file mode 100644 index 0000000000..946b0c1019 --- /dev/null +++ b/tools/playbooks/common/cover-post.yaml @@ -0,0 +1,3 @@ +- hosts: all + roles: + - role: fetch-coverage-output