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
|
|
|
|
|
2018-04-08 18:36:29 +02:00
|
|
|
vendor/bin/box compile
|
2018-03-11 17:35:46 +01:00
|
|
|
|
2021-01-11 19:16:44 +01:00
|
|
|
SIGNING_KEY_ID=${SIGNING_KEY_ID:-8A03EA3B385DBAA1}
|
|
|
|
|
2019-06-01 16:25:26 +02:00
|
|
|
if [[ "$GPG_ENCRYPTION" != '' ]] ; then
|
2021-01-11 19:16:44 +01:00
|
|
|
echo "$GPG_ENCRYPTION" | gpg --batch --passphrase-fd 0 keys.asc.gpg
|
2021-01-11 19:52:14 +01:00
|
|
|
# gpg --batch --yes --import keys.asc
|
2021-01-11 19:16:44 +01:00
|
|
|
echo "$SIGNING_KEY" | gpg --batch --passphrase-fd 0 --pinentry-mode loopback -u "$SIGNING_KEY_ID" --armor --detach-sig build/psalm.phar
|
2019-06-01 16:25:26 +02:00
|
|
|
fi
|