Skip to content
Snippets Groups Projects
Commit 0d7882f9 authored by jurgenhaas's avatar jurgenhaas
Browse files

Fix PHPStan test script

parent a43dabbf
No related branches found
No related tags found
1 merge request!12Merging develop into main
Pipeline #1072784 passed
...@@ -49,7 +49,12 @@ commands: ...@@ -49,7 +49,12 @@ commands:
cmd: ahoy d4d exec vendor/bin/phpunit --configuration /var/www/html/tests/phpunit.xml.dist --list-groups "$@" cmd: ahoy d4d exec vendor/bin/phpunit --configuration /var/www/html/tests/phpunit.xml.dist --list-groups "$@"
usage: List available test groups of PHP unit tests usage: List available test groups of PHP unit tests
phpstan: phpstan:
cmd: ahoy d4d exec vendor/bin/phpstan analyze --configuration=/var/www/html/tests/phpstan.neon "$@" cmd: |
module=$1
shift
config=/var/www/html/vendor/lakedrops/drupal-development-environment/defaults/phpstan.neon
if [[ -f /var/www/html/$module/phpstan.neon ]]; then config=/var/www/html/$module/phpstan.neon; fi
ahoy d4d exec vendor/bin/phpstan analyze --configuration=$config $module $@
usage: PHPStan tests usage: PHPStan tests
phpstanmodule: phpstanmodule:
cmd: | cmd: |
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment