From fe9e160ff58656501461c5e377d6035ebe49ebc1 Mon Sep 17 00:00:00 2001 From: rodicasutu Date: Tue, 7 Jul 2020 14:19:56 +0300 Subject: [PATCH] add the PR check --- scripts/setUpMavenPhase.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/setUpMavenPhase.sh b/scripts/setUpMavenPhase.sh index d959dc7463..7caa242c25 100644 --- a/scripts/setUpMavenPhase.sh +++ b/scripts/setUpMavenPhase.sh @@ -1,13 +1,6 @@ #!/usr/bin/env bash echo "Branch name: ${TRAVIS_BRANCH}" echo "Branch name: ${TRAVIS_PULL_REQUEST}" -# If this is pull request -#if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; -#then -# export MAVEN_PHASE="verify" -# echo "Maven Phase: ${MAVEN_PHASE}" -# exit 0 -#fi if [ "${TRAVIS_BRANCH}" == "master" ]; then @@ -18,5 +11,12 @@ then else export MAVEN_PHASE="verify" fi - +# If this is pull request +if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; +then + export MAVEN_PHASE="verify" + echo "Maven Phase: ${MAVEN_PHASE}" +# exit 0 +fi +echo "Maven Phase: ${MAVEN_PHASE}"