From 9f937028c29acfee4438a06b73caa1cbe1ac0613 Mon Sep 17 00:00:00 2001 From: Wolfgang Ziegler Date: Sat, 6 Apr 2019 15:15:17 +0200 Subject: [PATCH] Wait for mysql to be up to fix tests. --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6f27403219..4b4f936991 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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"