Skip to content

Commit

Permalink
Wait for galaxy to come up before running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nuwang committed Dec 11, 2017
1 parent 16f725e commit 0ce83af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ install:
# Use the Galaxy Docker image to test the role
- docker run --name galaxy -d -p 8080:80 quay.io/bgruening/galaxy

# Wait for web server port to come up
- ansible localhost -c local -m wait_for -a "port=8080 delay=5 state=started timeout=150"

# Wait for Galaxy to respond
- ansible localhost -c local -m uri -a "url=http://localhost:8080/ register=result until='result.status[0] in [\"2\", \"3\"]' retries=50 delay=3 ignore_error=True"
script:
# Check the role works in the test playbook.
- ansible-playbook -i "localhost," -c local -e galaxy_tools_galaxy_instance_url=http://127.0.0.1:8080 -e galaxy_runs_in_docker=yes -e galaxy_tools_api_key=admin test_playbook.yml

0 comments on commit 0ce83af

Please sign in to comment.