diff --git a/ci/install.sh b/ci/install.sh new file mode 100644 index 0000000000000000000000000000000000000000..024728b23e2edbe83e335a47f37cbb134cf61ae5 --- /dev/null +++ b/ci/install.sh @@ -0,0 +1,17 @@ +#!/bin/bash +# Ce script est utilisé pour paramétrer l'environnement du site + +cd /home/don/don +git pull origin $CD_BUILD_REF_NAME + +composer install --no-dev +composer update + +# Let's run the migrations +if [ -e "phinx.yml" ] +then + php vendor/robmorgan/phinx/bin/phinx migrate -e production +else + php vendor/robmorgan/phinx/bin/phinx init +fi +