Add generic tox job (multiple playbooks)
Here we now support 3 tox jobs; cover, linters and py27.
As you can see by looking at the code, we are not defining any
variables (vars) in .zuul.yaml. This means, we create 3 separate
playbooks (tox-cover.yaml, tox-py27, tox-linters.yaml) which then
contain the variables we need for our tox role.
Change-Id: I42f8855f44da51cb3d23f1825bd3258937543b2f
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
diff --git a/playbooks/roles/run-bindep/tasks/main.yaml b/playbooks/roles/run-bindep/tasks/main.yaml
new file mode 100644
index 0000000..7717c86
--- /dev/null
+++ b/playbooks/roles/run-bindep/tasks/main.yaml
@@ -0,0 +1,5 @@
+---
+- name: Run install-distro-packages.sh
+ shell: /usr/local/jenkins/slave_scripts/install-distro-packages.sh
+ args:
+ chdir: "/home/zuul/workspace/src/{{ zuul.project }}"
diff --git a/playbooks/roles/run-tox/defaults/main.yaml b/playbooks/roles/run-tox/defaults/main.yaml
index 7f0310c..9cb1477 100644
--- a/playbooks/roles/run-tox/defaults/main.yaml
+++ b/playbooks/roles/run-tox/defaults/main.yaml
@@ -1,3 +1,2 @@
---
-# tasks/main.yaml
-run_tox_eventlist:
+run_tox_envlist:
diff --git a/playbooks/roles/run-tox/tasks/main.yaml b/playbooks/roles/run-tox/tasks/main.yaml
index ca8d079..1053690 100644
--- a/playbooks/roles/run-tox/tasks/main.yaml
+++ b/playbooks/roles/run-tox/tasks/main.yaml
@@ -1,4 +1,4 @@
- name: Run tox
- shell: "/usr/local/jenkins/slave_scripts/run-tox.sh {{ run_tox_eventlist }}"
+ shell: "/usr/local/jenkins/slave_scripts/run-tox.sh {{ run_tox_envlist }}"
args:
chdir: "/home/zuul/workspace/src/{{ zuul.project }}"