1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00
psalm/bin/build-phar.sh

18 lines
511 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2018-03-02 02:08:10 +01:00
if ! php -r 'extension_loaded("bz2") or exit(1);' ; then
echo "You need to install (or enable) bz2 php extension"
exit 1
fi
composer global require 'humbug/php-scoper:^1.0@dev'
composer global require humbug/box:dev-master
composer install --no-dev
[ -d build ] || mkdir build
2018-03-02 01:16:10 +01:00
# increase FD limit, or Phar compression will fail
ulimit -Sn 4096
php -dphar.readonly=0 `which box` compile
# reinstall deps (to regenerate autoloader and bring back dev deps)
rm -Rf vendor/*
composer install