2019-06-15 15:04:52 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
|
|
|
cd /tmp/
|
2020-04-06 02:25:50 +02:00
|
|
|
mkdir -p testing-with-real-projects
|
2019-06-15 15:04:52 +02:00
|
|
|
cd testing-with-real-projects
|
|
|
|
|
2020-04-06 02:25:50 +02:00
|
|
|
case $1 in
|
|
|
|
phpunit)
|
|
|
|
git clone git@github.com:muglug/phpunit.git
|
|
|
|
cd phpunit
|
|
|
|
composer install
|
|
|
|
~/project/build/psalm.phar --config=.psalm/config.xml --monochrome --show-info=false
|
|
|
|
~/project/build/psalm.phar --config=.psalm/static-analysis.xml --monochrome
|
|
|
|
;;
|
|
|
|
|
|
|
|
collections)
|
|
|
|
git clone git@github.com:muglug/collections.git
|
|
|
|
cd collections
|
|
|
|
composer install
|
|
|
|
~/project/psalm --monochrome --show-info=false
|
|
|
|
;;
|
|
|
|
|
2020-07-07 23:12:07 +02:00
|
|
|
psl)
|
2020-12-13 23:13:48 +01:00
|
|
|
git clone git@github.com:muglug/psl.git
|
2020-07-07 23:12:07 +02:00
|
|
|
cd psl
|
|
|
|
composer install --ignore-platform-reqs
|
2020-12-04 07:20:35 +01:00
|
|
|
~/project/psalm --monochrome
|
2020-07-07 23:12:07 +02:00
|
|
|
;;
|
|
|
|
|
2020-06-15 23:24:23 +02:00
|
|
|
laravel)
|
|
|
|
git clone git@github.com:muglug/framework.git
|
|
|
|
cd framework
|
|
|
|
composer install
|
|
|
|
~/project/psalm --monochrome
|
|
|
|
;;
|
2020-04-06 02:25:50 +02:00
|
|
|
*)
|
2020-07-07 23:12:07 +02:00
|
|
|
echo "Usage: test-with-real-projects.sh {phpunit|collections|proxymanager|laravel|psl}"
|
2020-04-06 02:25:50 +02:00
|
|
|
exit 1
|
|
|
|
esac
|