psalm-plugin-laravel/tests/lumen-test.sh
Niels Vanpachtenbeke 4032ba0091 update baseline files in tests
this should get CI green again
2022-02-16 16:57:00 +01:00

18 lines
499 B
Bash
Executable File

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