Skip to content

Commit

Permalink
try with TRAVIS_PULL_REQUEST_SHA
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Dec 1, 2016
1 parent 4bbc5ce commit 4b830c9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions update/verify_upgrade_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,17 @@ printf " Latest tag = ${GREEN}$SHORT_LATEST_TAG${NC}\n"


# We need to execute init_qwat.sh from the lastest TAG version in $QWATSERVICETESTCONFORM
printf " Travis branch = ${GREEN}$CURRENT_BRANCH${NC}\n"
printf " Travis PR branch = ${GREEN}$TRAVIS_PULL_REQUEST_BRANCH${NC}\n"
printf " Travis branch = ${GREEN}$TRAVIS_BRANCH${NC}\n"
printf " Travis commit = ${GREEN}$TRAVIS_COMMIT${NC}\n"
printf " Travis PR branch = ${GREEN}$TRAVIS_PULL_REQUEST_BRANCH${NC}\n"
printf " Travis PR commit = ${GREEN}$TRAVIS_PULL_REQUEST_SHA${NC}\n"

if [[ ! -z $TRAVIS_PULL_REQUEST_SHA ]]; then
CURRENT_COMMIT=$TRAVIS_PULL_REQUEST_SHA
else
CURRENT_COMMIT=$TRAVIS_COMMIT
fi


PROPER_LATEST_TAG=$SHORT_LATEST_TAG".0.0"
echo "Switching on lastest tag major version ${GREEN}$PROPER_LATEST_TAG)${NC}"
Expand Down

0 comments on commit 4b830c9

Please sign in to comment.