mirror of
https://github.com/Icinga/icinga-php-thirdparty.git
synced 2025-11-15 03:09:59 +01:00
bin/make-release: Optimize autoloader for stable builds
This commit is contained in:
parent
a092a6b43b
commit
364112017f
@ -23,7 +23,9 @@ if [[ "$TAG" -ne "0" ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
OPTIMIZE_AUTOLOAD=""
|
||||||
if [ "$NO_OPT" != "--no-checkout" ]; then
|
if [ "$NO_OPT" != "--no-checkout" ]; then
|
||||||
|
OPTIMIZE_AUTOLOAD=" --classmap-authoritative"
|
||||||
BRANCH="stable/$VERSION"
|
BRANCH="stable/$VERSION"
|
||||||
git checkout -b "$BRANCH" || fail "Version branch $BRANCH already exists"
|
git checkout -b "$BRANCH" || fail "Version branch $BRANCH already exists"
|
||||||
else
|
else
|
||||||
@ -32,7 +34,7 @@ fi
|
|||||||
|
|
||||||
git rm -rf vendor
|
git rm -rf vendor
|
||||||
rm -rf vendor
|
rm -rf vendor
|
||||||
composer install || fail "composer install failed"
|
composer install$OPTIMIZE_AUTOLOAD || fail "composer install failed"
|
||||||
git add vendor
|
git add vendor
|
||||||
find asset/ -type f | xargs -L1 git add -f
|
find asset/ -type f | xargs -L1 git add -f
|
||||||
echo "v$VERSION" > VERSION
|
echo "v$VERSION" > VERSION
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user