From f3e9714f8ba6557d7e6759b4378e452e00f2566c Mon Sep 17 00:00:00 2001
From: Jonathan Swaelens <swaelens.jonathan@opensides.be>
Date: Mon, 26 Feb 2018 22:47:58 +0100
Subject: [PATCH] :ambulance: fix(gitlab-ci) Update php-codesniffer gitlab-ci

Make php-codesniffer stop the ci if there are errors

Signed-off-by: Jonathan Swaelens <swaelens.jonathan@opensides.be>
---
 .gitlab-ci.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 740e12700..69906fd51 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -66,7 +66,8 @@ create_php_code_sniffer_rapport:
     - apt-get install -y -qq  git php-cli php-codesniffer
   script:
     - git clone https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git ../dev-tools
-    - find . -type f -name '*.php' -o -name '*.inc' -exec phpcs --standard=../dev-tools/php-codesniffer-rules/FDStandard/ruleset.xml "{}" \;
+    - find . -type f -name '*.php' -o -name '*.inc' > ./filelist
+    - phpcs --standard=../dev-tools/php-codesniffer-rules/FDStandard/ruleset.xml --file-list=./filelist
 
 # PHP lint
 create_php_lint_rapport:
-- 
GitLab