Skip to content

Commit

Permalink
Wait for mysql to be up to fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
fago authored Apr 6, 2019
1 parent ea316c8 commit 9f93702
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ install:
script:
- cd project && vendor/bin/phapp setup localdev
# Fix permissions in docker container by setting the right users.
# Fix permissions in docker container by setting the right user.
- export COMPOSE_DEFAULT_USER=$(id -u $USER)
- docker-compose up -d
- echo "Waiting for mysql to come up..." && docker-compose exec cli /bin/bash -c "while ! echo exit | nc mariadb 3306; do sleep 1; done" >/dev/null
- docker-compose exec cli phapp install --no-build
- curl -v http://example.project.localdev.space | grep "Drupal 8"

Expand Down

0 comments on commit 9f93702

Please sign in to comment.