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:
parent
aca84e6f96
commit
7f5580d326
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user