fix the exit of builds on PRs

This commit is contained in:
rodicasutu
2020-07-06 18:04:46 +03:00
parent 9015cce59f
commit 943333a3a4
2 changed files with 8 additions and 5 deletions

View File

@@ -1,10 +1,12 @@
#!/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" ];
@@ -16,4 +18,5 @@ then
else
export MAVEN_PHASE="verify"
fi
echo "Maven Phase: $MAVEN_PHASE"