1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +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/ at: /home/docker/project/
- run: - run:
name: Analyse PHPUnit name: Analyse PHPUnit
command: bin/test-with-real-projects.sh command: bin/test-with-real-projects.sh phpunit
- store_artifacts: - run:
path: build/psalm.phar 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/ # Orchestrate or schedule a set of jobs, see https://circleci.com/docs/2.0/workflows/
workflows: workflows:

View File

@ -4,28 +4,32 @@ set -e
set -x set -x
cd /tmp/ cd /tmp/
mkdir testing-with-real-projects mkdir -p testing-with-real-projects
cd testing-with-real-projects cd testing-with-real-projects
git clone git@github.com:muglug/phpunit.git case $1 in
cd phpunit phpunit)
composer install git clone git@github.com:muglug/phpunit.git
~/project/build/psalm.phar --config=.psalm/config.xml --monochrome --show-info=false cd phpunit
~/project/build/psalm.phar --config=.psalm/static-analysis.xml --monochrome 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 collections)
git clone git@github.com:muglug/collections.git
git clone git@github.com:muglug/collections.git cd collections
cd collections composer install
composer install ~/project/psalm --monochrome --show-info=false
~/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
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