]> source.dussan.org Git - sonarqube.git/commitdiff
BUILD-513 only execute postgresql ITs on PR
authorTom <thomas.verin@sonarsource.com>
Tue, 22 Aug 2017 15:31:47 +0000 (17:31 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Wed, 23 Aug 2017 09:57:28 +0000 (11:57 +0200)
cix.sh

diff --git a/cix.sh b/cix.sh
index 60953121d3825bc0aa388b0b5799b205389c0ea9..02b2e4dd647af188cd63ffb74f3c55999213fb16 100755 (executable)
--- a/cix.sh
+++ b/cix.sh
@@ -7,15 +7,17 @@ case "$RUN_ACTIVITY" in
 
   run-db-unit-tests-*)
     DB_ENGINE=$(sed "s/run-db-unit-tests-//g" <<< $RUN_ACTIVITY)
-
     ./run-db-unit-tests.sh "http://infra.internal.sonarsource.com/jenkins/orch-${DB_ENGINE}.properties"
     ;;
 
   run-db-integration-tests-*)
     DB_ENGINE=$(sed "s/run-db-integration-tests-//g" <<< $RUN_ACTIVITY | cut -d \- -f 1)
     CATEGORY=$(sed "s/run-db-integration-tests-//g" <<< $RUN_ACTIVITY | cut -d \- -f 2)
-
-    ./run-integration-tests.sh "${CATEGORY}" "http://infra.internal.sonarsource.com/jenkins/orch-${DB_ENGINE}.properties"
+    if [[ "$GITHUB_BRANCH" == "PULLREQUEST-"* ]] && [[ "$DB_ENGINE" != "postgresql93" ]]; then
+     exit 0
+    else
+     ./run-integration-tests.sh "${CATEGORY}" "http://infra.internal.sonarsource.com/jenkins/orch-${DB_ENGINE}.properties"
+    fi
     ;;
 
   run-it-released-plugins)
@@ -28,7 +30,11 @@ case "$RUN_ACTIVITY" in
 
   run-upgrade-tests-*)
     DB_ENGINE=$(sed "s/run-upgrade-tests-//g" <<< $RUN_ACTIVITY)
-    ./run-upgrade-tests.sh "http://infra.internal.sonarsource.com/jenkins/orch-${DB_ENGINE}.properties"
+    if [[ "$GITHUB_BRANCH" == "PULLREQUEST-"* ]] && [[ "$DB_ENGINE" != "postgresql93" ]]; then
+     exit 0
+    else    
+      ./run-upgrade-tests.sh "http://infra.internal.sonarsource.com/jenkins/orch-${DB_ENGINE}.properties"
+    fi
     ;;
 
   *)