jit_bugs/bugs/1_composer.sh

25 lines
458 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
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
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 22:21:50 +02:00
echo "OK, no bugs!"