[PHPStan] Only run custom PHPStan extensions if environment vairable PHPSTAN_BOOT_KERNEL is defined (since it requires having the whole social setup available)

This commit is contained in:
2021-09-13 13:52:44 +01:00
parent a21b0afb70
commit 1adde913c6
6 changed files with 30 additions and 12 deletions

View File

@@ -4,4 +4,4 @@ cd /var/www/social || exit 1
yes yes | php bin/console doctrine:fixtures:load || exit 1
runuser -u www-data -- vendor/bin/simple-phpunit -vvv --coverage-html .test_coverage_report
runuser -u www-data -- vendor/bin/simple-phpunit --ansi -vvv --coverage-html .test_coverage_report

View File

@@ -2,4 +2,6 @@
cd /var/www/social || exit 1
vendor/bin/phpstan --ansi --no-interaction --memory-limit=2G analyse src tests components plugins
rm -rf /var/www/social/var/cache/*
PHPSTAN_BOOT_KERNEL=1 vendor/bin/phpstan --ansi --no-interaction --memory-limit=2G analyse
rm -rf /var/www/social/var/cache/*