Make integration tests run in parallel with async

This commit is contained in:
James Cammarata 2015-12-18 11:30:14 -05:00
parent f2364ecf5f
commit 0c154e81f0

View file

@ -10,11 +10,21 @@
register: results register: results
- shell: ". hacking/env-setup && cd test/integration && make {{ run_integration_make_target }}" - shell: ". hacking/env-setup && cd test/integration && make {{ run_integration_make_target }}"
async: 3600
poll: 0
register: async_test_results
sudo: true sudo: true
environment: environment:
TEST_FLAGS: "{{ run_integration_test_flags|default(lookup('env', 'TEST_FLAGS')) }}" TEST_FLAGS: "{{ run_integration_test_flags|default(lookup('env', 'TEST_FLAGS')) }}"
CREDENTIALS_FILE: "{{ run_integration_credentials_file|default(lookup('env', 'CREDENTIALS_FILE')) }}" CREDENTIALS_FILE: "{{ run_integration_credentials_file|default(lookup('env', 'CREDENTIALS_FILE')) }}"
args: args:
chdir: "{{ results.stdout }}/ansible" chdir: "{{ results.stdout }}/ansible"
- name: poll for test results
async_status:
jid: "{{async_test_results.ansible_job_id}}"
register: test_results register: test_results
until: test_results.finished
retries: 360
wait: 10
ignore_errors: true ignore_errors: true