From 35808cd2a05cea961f9b0af49ea4a2c8aa78df33 Mon Sep 17 00:00:00 2001
From: Dominik Pfennig <dominik@suma-ev.de>
Date: Tue, 3 May 2016 13:14:28 +0200
Subject: [PATCH] =?UTF-8?q?chmod=20Befehl=20sollte=20keinen=20Abbruch=20de?=
 =?UTF-8?q?s=20Builds=20mehr=20verursachen=20(=20war=20auch=20nicht=20vorg?=
 =?UTF-8?q?esehen=20)=20Build=20wird=20nur=20noch=20f=C3=BCr=20=C3=84nderu?=
 =?UTF-8?q?ngen=20auf=20dem=20Master=20Branch=20durchgef=C3=BChrt?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .gitlab-ci.yml | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 87d745228..58a023de7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,15 +8,18 @@ update:
     - 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
+    - cd ~/MetaGer
     - composer update
-    - chmod -R 777 storage/ bootstrap/cache/
+    - tmp=$(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
+    # Falls notwendig Homestead Server intialisieren:
+    - cd ~/
   script:
     - cd ~/MetaGer
-    - git pull "$path"
\ No newline at end of file
+    - git pull "$path"
+  only:
+    - master@gitlab.metager3.de:1234/
\ No newline at end of file
-- 
GitLab