Upstream null version; build version tags not being saved properly #575 (#578)

* Check for null version from upstream #575

* Fix for pre-release version numbering

* Move popup to right

* Split get/generate build ID #575
This commit is contained in:
Nabeel S
2020-02-23 12:23:19 -05:00
committed by GitHub
parent b9fe8bf738
commit 0e13905098
9 changed files with 89 additions and 20 deletions

View File

@@ -7,11 +7,10 @@ fi
cd $TRAVIS_BUILD_DIR
if test "$TRAVIS_TAG"; then
PKG_NAME=$TRAVIS_TAG
VERSION=$TRAVIS_TAG
# Pass in the tag as the version to write out
php artisan phpvms:version --write $VERSION
php artisan phpvms:version --write --write-full-version "${VERSION}"
else
echo "On branch $TRAVIS_BRANCH"
@@ -25,19 +24,20 @@ else
BASE_VERSION=$(php artisan phpvms:version --base-only)
# This now includes the pre-release version, so "-dev" by default
PKG_NAME=${BASE_VERSION}
VERSION=${BASE_VERSION}
# Don't pass in a version here, just write out the latest hash
php artisan phpvms:version --write >VERSION
VERSION=$(cat VERSION)
php artisan phpvms:version --write "${VERSION}"
fi
FILE_NAME="phpvms-${VERSION}"
TAR_NAME="$FILE_NAME.tar.gz"
ZIP_NAME="$FILE_NAME.zip"
echo "Version: $VERSION"
echo "Package name: $TAR_NAME"
FILE_NAME="phpvms-$PKG_NAME"
TAR_NAME="$FILE_NAME.tar.gz"
ZIP_NAME="$FILE_NAME.zip"
echo "==========================="
echo "Cleaning files"