From 164d5a997489c99b579e8e462df619dac87e6c58 Mon Sep 17 00:00:00 2001
From: Florent Pruvost <florent.pruvost@inria.fr>
Date: Tue, 17 Apr 2018 15:47:14 +0200
Subject: [PATCH] sonar analysis should be done only on the develop branch of
 the upstream repository

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6352a6f92..aa0a8a0f0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -76,7 +76,6 @@ sonar:
   script:
     - mv Build/scalfmm-build.log .
     - source ./Utils/scripts/analysis.sh
-    - sonar-scanner |tee sonar.log
-    - if [[ $CI_REPOSITORY_URL = *"solverstack/ScalFMM"* ]] && [[ $CI_COMMIT_REF_NAME = *"develop"* ]]; then
-        sonar-scanner |tee sonar.log;
-      fi
+    - sonar-scanner |tee sonar.log;
+  only:
+    - develop@solverstack/ScalFMM
\ No newline at end of file
-- 
GitLab