Monty Taylor | 0d254d5 | 2017-08-26 13:26:29 -0500 | [diff] [blame] | 1 | - hosts: controller |
| 2 | tasks: |
| 3 | |
Monty Taylor | b81f2d0 | 2017-08-31 13:26:58 -0500 | [diff] [blame] | 4 | - name: Run ansible that should succeed |
| 5 | command: ansible-playbook src/git.openstack.org/openstack-infra/zuul/playbooks/zuul-stream/fixtures/test-stream.yaml |
Monty Taylor | 0d254d5 | 2017-08-26 13:26:29 -0500 | [diff] [blame] | 6 | environment: |
| 7 | ZUUL_JOB_LOG_CONFIG: "{{ ansible_user_dir}}/logging.json" |
| 8 | ARA_LOG_CONFIG: "{{ ansible_user_dir}}/logging.json" |
| 9 | |
Monty Taylor | eb09398 | 2017-08-30 19:16:21 -0500 | [diff] [blame] | 10 | - name: Run ansible playbook that should fail |
Monty Taylor | b81f2d0 | 2017-08-31 13:26:58 -0500 | [diff] [blame] | 11 | command: ansible-playbook src/git.openstack.org/openstack-infra/zuul/playbooks/zuul-stream/fixtures/test-stream-failure.yaml |
Monty Taylor | eb09398 | 2017-08-30 19:16:21 -0500 | [diff] [blame] | 12 | register: failed_results |
| 13 | failed_when: "failed_results.rc != 2" |
| 14 | environment: |
| 15 | ZUUL_JOB_LOG_CONFIG: "{{ ansible_user_dir}}/logging.json" |
| 16 | ARA_LOG_CONFIG: "{{ ansible_user_dir}}/logging.json" |
| 17 | |
Monty Taylor | 0d254d5 | 2017-08-26 13:26:29 -0500 | [diff] [blame] | 18 | - name: Generate ARA html |
| 19 | command: ara generate html ara-output |
| 20 | |
| 21 | - name: Compress ARA html |
| 22 | command: gzip --recursive --best ara-output |