diff options
author | Tom <thomas.verin@sonarsource.com> | 2017-08-22 17:31:47 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2017-08-23 11:57:28 +0200 |
commit | 839e15712038f12609f5dd76e49787a69c2b2595 (patch) | |
tree | d3732677d588e663f190a7fbf3b86af1c63f9259 /cix.sh | |
parent | c49ca3ba841ea7763148a76d9a84e1bf7f5698ad (diff) | |
download | sonarqube-839e15712038f12609f5dd76e49787a69c2b2595.tar.gz sonarqube-839e15712038f12609f5dd76e49787a69c2b2595.zip |
BUILD-513 only execute postgresql ITs on PR
Diffstat (limited to 'cix.sh')
-rwxr-xr-x | cix.sh | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -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 ;; *) |