blob: 4f676730d93cbfefdb6e68ea13dd9b3d817de843 [file] [log] [blame]
Monty Taylor0d254d52017-08-26 13:26:29 -05001- hosts: controller
2 tasks:
3
Monty Taylorb81f2d02017-08-31 13:26:58 -05004 - 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 Taylor0d254d52017-08-26 13:26:29 -05006 environment:
7 ZUUL_JOB_LOG_CONFIG: "{{ ansible_user_dir}}/logging.json"
8 ARA_LOG_CONFIG: "{{ ansible_user_dir}}/logging.json"
9
Monty Tayloreb093982017-08-30 19:16:21 -050010 - name: Run ansible playbook that should fail
Monty Taylorb81f2d02017-08-31 13:26:58 -050011 command: ansible-playbook src/git.openstack.org/openstack-infra/zuul/playbooks/zuul-stream/fixtures/test-stream-failure.yaml
Monty Tayloreb093982017-08-30 19:16:21 -050012 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 Taylor0d254d52017-08-26 13:26:29 -050018 - name: Generate ARA html
19 command: ara generate html ara-output
20
21 - name: Compress ARA html
22 command: gzip --recursive --best ara-output