2023-10-23 21:59:18 +02:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
2023-10-23 23:04:58 +02:00
|
|
|
standalone=$PWD/bugs/wrap.php
|
|
|
|
|
2023-10-23 21:59:18 +02:00
|
|
|
cd /tmp
|
|
|
|
|
2023-10-23 22:37:56 +02:00
|
|
|
rm -rf psalm_3
|
2023-10-23 22:21:43 +02:00
|
|
|
|
2023-10-23 22:37:56 +02:00
|
|
|
git clone https://github.com/nicelocal/psalm -b rector_pass --depth 1 psalm_3
|
|
|
|
cd psalm_3
|
2023-10-23 21:59:18 +02:00
|
|
|
git checkout 9d3fee47afa90f3eb53043a26f01e587d2dd34e5
|
|
|
|
|
2023-10-23 22:37:56 +02:00
|
|
|
git branch -D master || true
|
|
|
|
git branch master
|
|
|
|
git checkout master
|
|
|
|
|
2023-10-23 21:59:18 +02:00
|
|
|
export PSALM_ALLOW_XDEBUG=1
|
|
|
|
|
2023-10-23 23:04:58 +02:00
|
|
|
cp $standalone .
|
|
|
|
|
2023-10-23 21:59:18 +02:00
|
|
|
composer i --ignore-platform-reqs
|
|
|
|
|
2023-10-23 22:10:11 +02:00
|
|
|
echo "About to run psalm"
|
|
|
|
|
2023-10-23 23:04:58 +02:00
|
|
|
docker run -v $PWD:/app --rm --privileged -it asan_tests /usr/bin/php /app/wrap.php /app/psalm --no-cache
|
2023-10-23 22:21:43 +02:00
|
|
|
|
|
|
|
echo "About to run composer"
|
|
|
|
|
|
|
|
rm -rf vendor
|
|
|
|
|
2023-10-23 23:42:45 +02:00
|
|
|
docker run -v $PWD:/app --rm --privileged -it asan_tests /usr/bin/php /app/wrap.php /usr/bin/composer update --ignore-platform-reqs
|
2023-10-23 21:59:18 +02:00
|
|
|
|
|
|
|
echo "OK, no bugs!"
|