Misc fixes

* Updated build scripts to handle gitless environments a little
  better
* PDO shell plugin improvements
* More tests
This commit is contained in:
2021-12-17 12:51:29 +01:00
parent 1eab339347
commit 0f45219747
10 changed files with 165 additions and 8 deletions

View File

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

View File

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