Create run-cover role
We incorrectly used the run-tox role for our coverage jobs. Correct
this by creating the run-cover role and updating tox-cover job to use
it.
Change-Id: I775fa00577856c3914266d23d32e9333b70e7db7
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
diff --git a/playbooks/roles/run-cover/defaults/main.yaml b/playbooks/roles/run-cover/defaults/main.yaml
new file mode 100644
index 0000000..2e32efe
--- /dev/null
+++ b/playbooks/roles/run-cover/defaults/main.yaml
@@ -0,0 +1,2 @@
+---
+run_cover_envlist: cover
diff --git a/playbooks/roles/run-cover/tasks/main.yaml b/playbooks/roles/run-cover/tasks/main.yaml
new file mode 100644
index 0000000..5fce7f1
--- /dev/null
+++ b/playbooks/roles/run-cover/tasks/main.yaml
@@ -0,0 +1,4 @@
+- name: Execute run-cover.sh.
+ shell: "/usr/local/jenkins/slave_scripts/run-cover.sh {{ run_cover_envlist }}"
+ args:
+ chdir: "/home/zuul/workspace/src/{{ zuul.project }}"
diff --git a/playbooks/tox-cover.yaml b/playbooks/tox-cover.yaml
index 942aa23..ca391e1 100644
--- a/playbooks/tox-cover.yaml
+++ b/playbooks/tox-cover.yaml
@@ -1,5 +1,3 @@
- hosts: all
- vars:
- run_tox_envlist: cover
roles:
- - run-tox
+ - run-cover