add the PR check

This commit is contained in:
rodicasutu
2020-07-07 14:19:56 +03:00
parent d20aa44d73
commit fe9e160ff5

View File

@@ -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}"