Skip to content

Commit

Permalink
remove travis_wait, poll in Ansible instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Capuccini committed Jan 16, 2017
1 parent d10b229 commit 24a4d63
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ install:
- source test/secrets-kubenow/host_cloud/aws.sh

script:
- travis_wait ansible-playbook -e "host_cloud=openstack" test/integration-test.yml
- travis_wait ansible-playbook -e "host_cloud=gce" test/integration-test.yml
- travis_wait ansible-playbook -e "host_cloud=aws" test/integration-test.yml
- ansible-playbook -e "host_cloud=openstack" test/integration-test.yml
- ansible-playbook -e "host_cloud=gce" test/integration-test.yml
- ansible-playbook -e "host_cloud=aws" test/integration-test.yml
11 changes: 11 additions & 0 deletions test/roles/test-packer/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@
args:
chdir: "{{playbook_dir}}/.."
notify: "delete image"
# run asynch (travis needs some polling output)
async: 1800 # 30 minutes
poll: 0
register: packer_build

- name: "wait for packer image to be ready"
async_status: jid={{ packer_build.ansible_job_id }}
register: build_result
until: build_result.finished
retries: 30
delay: 60

- include: get_ami_facts.yml
when: host_cloud == "aws"

0 comments on commit 24a4d63

Please sign in to comment.