From c1fef0d19abc65f22b9278caeda586e7aed567f1 Mon Sep 17 00:00:00 2001
From: Jonathan Swaelens <swaelens.jonathan@opensides.be>
Date: Tue, 19 Sep 2017 18:09:51 +0200
Subject: [PATCH] :sparkles: feat(gitlab-ci) Add exception to make the build
 working

Add exception when the build don't need to work

closes #5693

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ce263d82f..64b60e448 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,6 +13,9 @@ before_script:
 
 # Generate perlcritic rapport
 create_perlcritic_rapport:
+  except:
+    - branches
+    - tags
   script:
     - cp contrib/bin/fusiondirectory-setup contrib/bin/fusiondirectory-setup.pl
     - cp contrib/bin/fusiondirectory-insert-schema contrib/bin/fusiondirectory-insert-schema.pl
@@ -20,11 +23,17 @@ create_perlcritic_rapport:
 
 # PHP codesniffer
 create_php_code_sniffer_rapport:
+  except:
+    - branches
+    - tags
   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 "{}" \;
 
 # PHP lint
 create_php_lint_rapport:
+  except:
+    - branches
+    - tags
   script:
     - find . -type f -name '*.php' -o -name '*.inc' -print0 | xargs -0 -n1 php -l
-- 
GitLab