diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 46c9869fb9fb18a9add90d96bca152e7779b85d9..87d74522889a01600b1039ee7b6c8a7ae02201c0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,13 +1,22 @@ update: before_script: + # Abhängigkeiten überprüfen - which virtualbox - which vagrant - which composer - which git - which php + # Pfad zum neu geklonten Repo - path=`pwd` - cd ~/ + # Klone das Repo neu, falls es noch nicht existiert - if [ ! -d ~/MetaGer ] ; then git clone "$path" ; fi + # Falls notwendig Laravel-Framework initialisieren: + - cd MetaGer + - composer update + - chmod -R 777 storage/ bootstrap/cache/ + - if [ ! -f .env ] ; then cp .env.example .env ; fi + - if [ $(grep "SomeRandomString" .env) ] ; then php artisan key:generate ; fi script: - cd ~/MetaGer - git pull "$path" \ No newline at end of file