2023-10-24 17:50:54 +02:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
2023-10-30 22:46:09 +01:00
|
|
|
composer update
|
|
|
|
|
2023-10-24 17:50:54 +02:00
|
|
|
standalone=$PWD/bugs/wrap.php
|
|
|
|
refactor=$PWD/refactor.php
|
|
|
|
|
|
|
|
cd /tmp
|
|
|
|
|
|
|
|
rm -rf psalm_8
|
|
|
|
|
|
|
|
git clone https://github.com/nicelocal/psalm -b master psalm_8
|
|
|
|
cd psalm_8
|
|
|
|
git checkout c7d7b48bdd798b404976054d1b5220082c2f246e
|
|
|
|
|
|
|
|
git branch -D master || true
|
|
|
|
git branch master
|
|
|
|
git checkout master
|
|
|
|
|
|
|
|
export PSALM_ALLOW_XDEBUG=1
|
|
|
|
|
|
|
|
cp $standalone .
|
|
|
|
|
|
|
|
composer i --ignore-platform-reqs
|
|
|
|
|
|
|
|
echo "About to run psalm"
|
|
|
|
|
|
|
|
php $refactor
|
|
|
|
|
|
|
|
docker run -v $PWD:/app --rm --privileged -it asan_tests /usr/bin/php --repeat 2 -f /app/wrap.php /app/psalm --no-cache
|
|
|
|
|
2023-10-30 22:46:09 +01:00
|
|
|
echo "OK, no bugs!"
|