pull branch test into the deploy script itself

This commit is contained in:
Nabeel Shahzad
2018-02-03 13:50:08 -06:00
parent af39f2839f
commit 9ffa669847
2 changed files with 10 additions and 6 deletions

View File

@@ -8,6 +8,12 @@ if [ "$TRAVIS" = "true" ]; then
PKG_NAME=$TRAVIS_TAG
else
echo "On branch $TRAVIS_BRANCH"
if [ "$TRAVIS_BRANCH" -ne "master" ] && [ "$TRAVIS_BRANCH" -ne "dev" ]; then
echo "Not on valid branch, exiting"
exit 0;
fi;
BASE_VERSION=`php artisan phpvms:version --base-only`
PKG_NAME=${BASE_VERSION}-${TRAVIS_BRANCH}
fi