1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-04 10:38:49 +01:00
psalm/bin/test-with-real-projects.sh
Bruce Weirdan 7f5580d326
Run every project as separate step (#3076)
It's easier to see which project is failing this way
2020-04-05 20:25:50 -04:00

36 lines
750 B
Bash
Executable File

#!/usr/bin/env bash
set -e
set -x
cd /tmp/
mkdir -p testing-with-real-projects
cd testing-with-real-projects
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
;;
proxymanager)
git clone git@github.com:muglug/ProxyManager.git
cd ProxyManager
composer install
~/project/psalm --monochrome
;;
*)
echo "Usage: test-with-real-projects.sh {phpunit|collections|proxymanager}"
exit 1
esac