Skip to content
Snippets Groups Projects
Verified Commit d55c0657 authored by David Beniamine's avatar David Beniamine
Browse files

Wait for mysql to be up

parent e956df16
No related branches found
No related tags found
1 merge request!25Add a gitlab-ci file
......@@ -34,7 +34,8 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq \
libzip-dev \
zlib1g-dev \
libxml2-dev \
libicu-dev
libicu-dev \
netcat
RUN docker-php-ext-configure gd --with-freetype --with-jpeg
......
......@@ -26,6 +26,10 @@ run_step "Starting apache" apache2ctl -DFOREGROUND &
run_step "PHP dependencies" composer install
run_step "Javascript dependencies" npm install
run_step "Assets compilation" npm run dev
echo "Waiting for mysql to be up and running"
until nc -z -v -w30 mysql 3306; do
sleep 5
done
run_step "Doctrine create DB" php bin/console doctrine:migrations:migrate --env=test
run_step "Doctrine load fixtures" php bin/console doctrine:fixtures:load --no-interaction --env=test
run_step "Unit and functional tests" composer tests
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment