2023-10-23 22:21:50 +02:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
2023-10-23 23:04:58 +02:00
|
|
|
standalone=$PWD/bugs/wrap.php
|
|
|
|
|
2023-10-23 22:21:50 +02:00
|
|
|
cd /tmp
|
|
|
|
|
|
|
|
rm -rf psalm
|
|
|
|
|
|
|
|
git clone https://github.com/vimeo/psalm
|
|
|
|
cd psalm
|
|
|
|
git checkout 7428e49b115a2a837aa29cf0fafd0ca902fe2457
|
|
|
|
|
2023-10-23 22:37:56 +02:00
|
|
|
git branch -D master || true
|
|
|
|
git branch master
|
|
|
|
git checkout master
|
|
|
|
|
2023-10-23 23:04:58 +02:00
|
|
|
cp $standalone .
|
|
|
|
|
2023-10-23 22:21:50 +02:00
|
|
|
export PSALM_ALLOW_XDEBUG=1
|
|
|
|
|
|
|
|
composer i --ignore-platform-reqs
|
|
|
|
|
|
|
|
echo "About to run phpunit"
|
|
|
|
|
2023-10-24 00:05:33 +02:00
|
|
|
docker run -v $PWD:/app --rm --privileged -it asan_tests /usr/bin/php /app/wrap.php /app/vendor/bin/phpunit --debug
|
2023-10-23 22:21:50 +02:00
|
|
|
|
|
|
|
echo "About to run composer"
|
|
|
|
|
|
|
|
rm -rf vendor
|
|
|
|
|
2023-10-23 23:04:58 +02:00
|
|
|
docker run -v $PWD:/app --rm --privileged -it asan_tests /usr/bin/php /app/wrap.php /usr/bin/composer update
|
2023-10-23 22:21:50 +02:00
|
|
|
|
|
|
|
echo "OK, no bugs!"
|