aboutsummaryrefslogtreecommitdiffstats
path: root/cix.sh
diff options
context:
space:
mode:
authorTom <thomas.verin@sonarsource.com>2017-08-22 17:31:47 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2017-08-23 11:57:28 +0200
commit839e15712038f12609f5dd76e49787a69c2b2595 (patch)
treed3732677d588e663f190a7fbf3b86af1c63f9259 /cix.sh
parentc49ca3ba841ea7763148a76d9a84e1bf7f5698ad (diff)
downloadsonarqube-839e15712038f12609f5dd76e49787a69c2b2595.tar.gz
sonarqube-839e15712038f12609f5dd76e49787a69c2b2595.zip
BUILD-513 only execute postgresql ITs on PR
Diffstat (limited to 'cix.sh')
-rwxr-xr-xcix.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/cix.sh b/cix.sh
index 60953121d38..02b2e4dd647 100755
--- 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
;;
*)