Misc fixes
* Updated build scripts to handle gitless environments a little better * PDO shell plugin improvements * More tests
This commit is contained in:
@@ -5,11 +5,13 @@ if [ ! -f spark.phar ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
VERSION="$(git describe --tags)"
|
||||
PATH="$PWD/tools:$PATH"
|
||||
if [ -z "$VERSION" ]; then
|
||||
VERSION="$(git describe --tags)"
|
||||
PATH="$PWD/tools:$PATH"
|
||||
fi
|
||||
|
||||
if [ -z "$VERSION" ]; then
|
||||
echo "Could not parse version from git"
|
||||
echo "Could not parse version from git. Export VERSION if you are building manually."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
@@ -12,7 +12,7 @@ VERSION="$(git describe --tags)"
|
||||
|
||||
if [ -z "$VERSION" ]; then
|
||||
echo "Could not parse version from git"
|
||||
exit 1
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo -e "<?php define(\"APP_VERSION\", \"$VERSION\");" > src/version
|
||||
|
Reference in New Issue
Block a user