zuul-jobs/roles/test-setup/tasks/main.yaml

15 lines
381 B
YAML

- name: "Check if project's tools/test-setup.sh exists"
stat:
path: "{{ zuul_work_dir }}/tools/test-setup.sh"
register: p
- name: Run tools/test-setup.sh
command: tools/test-setup.sh {{ test_setup_args }}
environment: "{{ test_setup_environment }}"
args:
chdir: "{{ zuul_work_dir }}"
when:
- p.stat.exists
- p.stat.executable
- not test_setup_skip