Paul Belanger | 989b03c | 2017-03-21 08:20:12 -0400 | [diff] [blame] | 1 | --- |
Paul Belanger | 01be2d6 | 2017-03-03 14:49:17 -0500 | [diff] [blame] | 2 | - name: Check if projects tools/test-setup.sh exists. |
Paul Belanger | 989b03c | 2017-03-21 08:20:12 -0400 | [diff] [blame] | 3 | stat: |
Paul Belanger | 01be2d6 | 2017-03-03 14:49:17 -0500 | [diff] [blame] | 4 | path: "{{ zuul_workspace_root }}/src/{{ zuul.project }}/tools/test-setup.sh" |
Paul Belanger | 989b03c | 2017-03-21 08:20:12 -0400 | [diff] [blame] | 5 | register: p |
| 6 | |
| 7 | - name: Run tools/test-setup.sh. |
| 8 | shell: tools/test-setup.sh |
| 9 | args: |
Paul Belanger | 01be2d6 | 2017-03-03 14:49:17 -0500 | [diff] [blame] | 10 | chdir: "{{ zuul_workspace_root }}/src/{{ zuul.project }}" |
Paul Belanger | 989b03c | 2017-03-21 08:20:12 -0400 | [diff] [blame] | 11 | when: |
| 12 | - p.stat.exists |
| 13 | - p.stat.executable |