psalm-plugin-laravel/tests/lumen-test.sh

18 lines
494 B
Bash
Raw Normal View History

2020-06-22 05:59:21 +02:00
#!/bin/bash
set -e
echo "Cleaning Up"
rm -rf ../lumen/
echo "Installing Lumen"
composer create-project --quiet --prefer-dist "laravel/lumen" ../lumen
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
2020-06-22 05:59:21 +02:00
COMPOSER_MEMORY_LIMIT=-1 composer require --dev "psalm/plugin-laravel:*"
echo "Analyzing Lumen"
./vendor/bin/psalm -c ../psalm-plugin-laravel/tests/lumen-test-psalm.xml