2018-03-02 01:10:08 +01:00
|
|
|
#!/usr/bin/env bash
|
2019-06-07 01:14:01 +02:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2018-04-08 18:36:29 +02:00
|
|
|
composer bin box install
|
2018-03-11 17:35:46 +01:00
|
|
|
|
2019-06-09 01:51:40 +02:00
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
|
|
|
|
|
|
php $DIR/improve_class_alias.php
|
|
|
|
|
2022-11-26 05:00:43 +01:00
|
|
|
php -r 'require "vendor/autoload.php"; Psalm\Internal\VersionUtils::dump();'
|
|
|
|
if [[ ! -f build/phar-versions.php ]] ; then
|
|
|
|
echo "failed to dump versions";
|
|
|
|
exit;
|
|
|
|
fi
|
|
|
|
|
2022-11-26 05:36:47 +01:00
|
|
|
vendor/bin/box compile --no-parallel
|
2018-03-11 17:35:46 +01:00
|
|
|
|
2021-01-11 20:37:17 +01:00
|
|
|
if [[ "$GPG_SIGNING" != '' ]] ; then
|
2021-01-11 21:15:14 +01:00
|
|
|
if [[ "$GPG_SECRET_KEY" != '' ]] ; then
|
2021-01-11 21:05:16 +01:00
|
|
|
echo "Load secret key into gpg"
|
2021-01-11 21:15:14 +01:00
|
|
|
echo "$GPG_SECRET_KEY" | gpg --import --no-tty --batch --yes
|
2021-01-11 21:05:16 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
echo "Sign Phar"
|
2021-01-11 21:15:14 +01:00
|
|
|
|
2021-01-11 21:19:37 +01:00
|
|
|
echo "$GPG_PASSPHRASE" | gpg --command-fd 0 --passphrase-fd 0 --pinentry-mode loopback -u 12CE0F1D262429A5 --batch --detach-sign --armor --output build/psalm.phar.asc build/psalm.phar
|
2019-06-01 16:25:26 +02:00
|
|
|
fi
|