2020-06-22 05:59:21 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
echo "Cleaning Up"
|
|
|
|
rm -rf ../lumen/
|
|
|
|
|
|
|
|
echo "Installing Lumen"
|
2022-02-16 16:57:00 +01:00
|
|
|
composer create-project laravel/lumen ../lumen 8.* --quiet --prefer-dist
|
2020-06-22 05:59:21 +02:00
|
|
|
cd ../lumen/
|
|
|
|
|
|
|
|
echo "Adding package from source"
|
2020-06-22 06:31:47 +02:00
|
|
|
sed -e 's|"type": "project",|&"repositories": [ { "type": "path", "url": "../psalm-plugin-laravel" } ],|' -i composer.json
|
2022-02-16 16:57:00 +01:00
|
|
|
COMPOSER_MEMORY_LIMIT=-1 composer require --dev "psalm/plugin-laravel:*" -W
|
2020-06-22 05:59:21 +02:00
|
|
|
|
|
|
|
echo "Analyzing Lumen"
|
|
|
|
./vendor/bin/psalm -c ../psalm-plugin-laravel/tests/lumen-test-psalm.xml
|