mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
20 lines
533 B
Bash
Executable File
20 lines
533 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
composer bin box install
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
|
|
php $DIR/improve_class_alias.php
|
|
|
|
vendor/bin/box compile
|
|
|
|
SIGNING_KEY_ID=${SIGNING_KEY_ID:-8A03EA3B385DBAA1}
|
|
|
|
if [[ "$GPG_ENCRYPTION" != '' ]] ; then
|
|
echo "$GPG_ENCRYPTION" | gpg --batch --passphrase-fd 0 keys.asc.gpg
|
|
gpg --batch --yes --import keys.asc
|
|
echo "$SIGNING_KEY" | gpg --batch --passphrase-fd 0 --pinentry-mode loopback -u "$SIGNING_KEY_ID" --armor --detach-sig build/psalm.phar
|
|
fi
|