2022-07-31 08:13:17 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-10-21 07:02:49 +00:00
|
|
|
docker run --rm -v $(pwd):/app -v /tmp/phpstan-8.1:/tmp/phpstan \
|
|
|
|
--workdir /app registry.fakecake.org/ci/php8.2-alpine:3.18 php82 -d memory_limit=-1 ./vendor/bin/phpstan --memory-limit=2G --error-format=raw analyze .
|
|
|
|
echo All done, RC=$?.
|
|
|
|
|
2022-07-31 08:13:17 +00:00
|
|
|
while true; do
|
|
|
|
inotifywait . -e close_write -r -t 300 | grep -q .php && \
|
|
|
|
(
|
2023-04-06 17:25:48 +00:00
|
|
|
MODIFIED=$(git ls-files -m | grep .php)
|
|
|
|
|
2022-07-31 08:13:17 +00:00
|
|
|
docker run --rm -v $(pwd):/app -v /tmp/phpstan-8.1:/tmp/phpstan \
|
2023-10-20 18:22:03 +00:00
|
|
|
--workdir /app registry.fakecake.org/ci/php8.2-alpine:3.18 php82 -d memory_limit=-1 ./vendor/bin/phpstan --memory-limit=2G --error-format=raw analyze ${MODIFIED}
|
2022-07-31 08:13:17 +00:00
|
|
|
echo All done, RC=$?.
|
|
|
|
)
|
|
|
|
sleep 1
|
|
|
|
done
|