#!/bin/bash # Ce script est utilisé pour paramétrer l'environnement du site cd /home/don/don git pull origin $CI_BUILD_REF_NAME git checkout $CI_BUILD_REF_NAME composer install --no-dev composer update # Let's run the migrations if [ -e "phinx.yml" ] then case $CI_BUILD_REF_NAME in production) php vendor/robmorgan/phinx/bin/phinx migrate -e production;; development) php vendor/robmorgan/phinx/bin/phinx migrate -e development;; esac else php vendor/robmorgan/phinx/bin/phinx init fi