tao-test/app/vendor/doctrine/migrations/build-phar.sh

20 lines
366 B
Bash
Raw Normal View History

2022-08-29 20:14:13 +02:00
#!/usr/bin/env bash
set -euf -o pipefail
./download-box.sh
function restorePlatform {
composer config --unset platform
mv -f composer.lock.back composer.lock || true
}
# lock PHP to minimum allowed version
composer config platform.php 7.2.0
cp composer.lock composer.lock.back || true
composer update
php box.phar compile -vv
trap restorePlatform exit