mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
b26c57237f
* Test against `roave/you-are-using-it-wrong` * Added CI step to ensure BC of declared API * Added step to ensure `composer.json` has all used deps * Including CI check tools as dev dependencies * Typo fix: s/backwards/backward * Run `roave/backward-compatibility-check` off an isolated location with no other dependencies * Run `test-with-real-projects` task with PHP 7.4 as base runtime * Run `testing-with-real-projects` also against `ocramius/proxy-manager` `ocramius/proxy-manager` is an extremely heavy `vimeo/psalm` consumer, and relies on a lot of the templated types system to generate real types for proxies produced by runtime evaluation.
38 lines
907 B
Bash
Executable File
38 lines
907 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
set -x
|
|
|
|
cd /tmp/
|
|
mkdir testing-with-real-projects
|
|
cd testing-with-real-projects
|
|
|
|
git clone git@github.com:sebastianbergmann/phpunit.git
|
|
cd phpunit
|
|
git checkout 1c2bc44 # bugfix
|
|
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:Ocramius/ProxyManager.git
|
|
cd ProxyManager
|
|
composer install
|
|
~/project/build/psalm.phar --monochrome
|
|
|
|
cd /tmp/testing-with-real-projects
|
|
|
|
git clone git@github.com:roave/you-are-using-it-wrong.git
|
|
cd you-are-using-it-wrong
|
|
composer install
|
|
~/project/build/psalm.phar --monochrome
|
|
./vendor/bin/phpunit
|