1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Run every project as separate step (#3076)

It's easier to see which project is failing this way
This commit is contained in:
Bruce Weirdan 2020-04-06 03:25:50 +03:00 committed by GitHub
parent aca84e6f96
commit 7f5580d326
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 24 deletions

View File

@ -107,9 +107,13 @@ jobs:
at: /home/docker/project/
- run:
name: Analyse PHPUnit
command: bin/test-with-real-projects.sh
- store_artifacts:
path: build/psalm.phar
command: bin/test-with-real-projects.sh phpunit
- run:
name: Analyse Collections
command: bin/test-with-real-projects.sh collections
- run:
name: Analyse ProxyManager
command: bin/test-with-real-projects.sh proxymanager
# Orchestrate or schedule a set of jobs, see https://circleci.com/docs/2.0/workflows/
workflows:

View File

@ -4,28 +4,32 @@ set -e
set -x
cd /tmp/
mkdir testing-with-real-projects
mkdir -p testing-with-real-projects
cd testing-with-real-projects
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
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
;;
cd /tmp/testing-with-real-projects
git clone git@github.com:muglug/collections.git
cd collections
composer install
~/project/psalm --monochrome --show-info=false
cd /tmp/testing-with-real-projects
git clone git@github.com:muglug/ProxyManager.git
cd ProxyManager
composer install
~/project/psalm --monochrome
cd /tmp/testing-with-real-projects
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