jit_bugs/bugs/5_psalm.sh

34 lines
672 B
Bash
Raw Permalink Normal View History

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
2023-10-24 00:15:15 +02:00
rm -rf psalm_5
2023-10-23 22:21:50 +02:00
2023-10-24 00:15:15 +02:00
git clone https://github.com/vimeo/psalm psalm_5
cd psalm_5
2023-10-23 22:21:50 +02:00
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-24 00:20:35 +02:00
docker run -v $PWD:/app --rm --privileged -it asan_tests /usr/bin/php --repeat 2 -f /app/wrap.php /usr/bin/composer update
2023-10-23 22:21:50 +02:00
2023-10-24 00:15:15 +02:00
echo "OK, no bugs!"