Monty Taylor 10a959d5e6
Add run-bindep role and add it to unittests pre
Before we revoke sudo, we need to run bindep in the project. Add
the run-bindep role.

Copy the content of the jenkins script for now. This way we can iterate
on the content in smaller chunks.

Change-Id: Ib893b06d05039af078e6eea22e882f6f1efae226
2017-06-27 15:32:36 -05:00

13 lines
319 B
YAML

- name: Check if project's tools/test-setup.sh exists
stat:
path: "src/{{ zuul.project.canonical_name }}/tools/test-setup.sh"
register: p
- name: Run tools/test-setup.sh
shell: tools/test-setup.sh
args:
chdir: "src/{{ zuul.project.canonical_name }}"
when:
- p.stat.exists
- p.stat.executable