From 66ddec96d281ee71134b071d32d992a6b9169e2c Mon Sep 17 00:00:00 2001
From: Mathieu Faverge <mathieu.faverge@inria.fr>
Date: Thu, 21 Mar 2019 11:28:13 +0100
Subject: [PATCH] Reduce the number of files to analyze

---
 tools/analysis.sh     | 6 +++---
 tools/find_sources.sh | 2 +-
 tools/release.sh      | 3 ++-
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/tools/analysis.sh b/tools/analysis.sh
index 4c549d00f..e596c98b6 100755
--- a/tools/analysis.sh
+++ b/tools/analysis.sh
@@ -33,15 +33,15 @@ sonar.login=$SONARQUBE_LOGIN
 
 sonar.links.homepage=$CI_PROJECT_URL
 sonar.links.scm=$CI_REPOSITORY_URL
-sonar.links.ci=https://gitlab.inria.fr/$CI_PROJECT_NAMESPACE/chameleon/pipelines
-sonar.links.issue=https://gitlab.inria.fr/$CI_PROJECT_NAMESPACE/chameleon/issues
+sonar.links.ci=$CI_PROJECT_URL/pipelines
+sonar.links.issue=$CI_PROJECT_URL/issues
 
 sonar.projectKey=hiepacs:chameleon:gitlab:$CI_PROJECT_NAMESPACE:$CI_COMMIT_REF_NAME
 sonar.projectDescription=Dense linear algebra subroutines for heterogeneous and distributed architectures
 sonar.projectVersion=0.9
 
 sonar.language=c
-sonar.sources=build-openmp, build-parsec, build-quark, build-starpu, build-starpu_simgrid, compute, control, coreblas, example, include, runtime, testing, timing
+sonar.sources=build-openmp/runtime/openmp, build-parsec/runtime/parsec, build-quark/runtime/quark, build-starpu, compute, control, coreblas, example, include, runtime, testing, timing
 sonar.inclusions=`cat filelist.txt | sed ':a;N;$!ba;s/\n/, /g'`
 sonar.c.includeDirectories=$(echo | gcc -E -Wp,-v - 2>&1 | grep "^ " | tr '\n' ',').,$(find . -type f -name '*.h' | sed -r 's|/[^/]+$||' |sort |uniq | xargs echo | sed -e 's/ /,/g'),$PARSEC_DIR/include,$QUARK_DIR/include,$STARPU_DIR/include/starpu/1.2,$SIMGRID_DIR/include
 sonar.sourceEncoding=UTF-8
diff --git a/tools/find_sources.sh b/tools/find_sources.sh
index f340967a4..d4642717e 100755
--- a/tools/find_sources.sh
+++ b/tools/find_sources.sh
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -x
 
-SRCDIR_TO_ANALYZE="build-openmp build-parsec build-quark build-starpu build-starpu_simgrid compute control coreblas example include runtime testing timing"
+SRCDIR_TO_ANALYZE="build-openmp/runtime/openmp build-parsec/runtime/parsec build-quark/runtime/quark build-starpu compute control coreblas example include runtime testing timing"
 
 echo $PWD
 rm -f filelist.txt
diff --git a/tools/release.sh b/tools/release.sh
index d10025d81..5786ecf66 100755
--- a/tools/release.sh
+++ b/tools/release.sh
@@ -17,7 +17,7 @@ function gen_changelog()
         #echo $line
     done
 
-    changelog="$changelog\nWARNING: Download the source archive by clicking on the link __Download release__ above, please do not consider the link Source code to get all submodules.\n"
+    changelog="${changelog}\nWARNING: Download the source archive by clicking on the link __Download release__ above, please do not consider the link Source code to get all submodules.\n"
 }
 
 release=""
@@ -50,6 +50,7 @@ MYURL=`eval $GETURL | jq .url | sed "s#\"##g"`
 
 # extract the change log from ChangeLog
 gen_changelog
+echo $changelog
 
 # Try to remove the release if it already exists
 curl --request DELETE --header "PRIVATE-TOKEN: $RELEASE_TOKEN" https://gitlab.inria.fr/api/v4/projects/$CI_PROJECT_ID/releases/v$RELEASE_NAME
-- 
GitLab