From 932c46157597e89ae38b0ee0699adb27981bccfe Mon Sep 17 00:00:00 2001 From: Mindiell Date: Mon, 23 Jul 2018 21:22:26 +0200 Subject: [PATCH] Modification du fichier d'installation pour prendre en compte le site de dev --- ci/install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ci/install.sh b/ci/install.sh index 4f23532..bfd6bab 100644 --- a/ci/install.sh +++ b/ci/install.sh @@ -11,7 +11,12 @@ composer update # Let's run the migrations if [ -e "phinx.yml" ] then - php vendor/robmorgan/phinx/bin/phinx migrate -e production + 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 -- GitLab