oliverdavies.uk-drupal-old/bin/run-tests.sh

22 lines
675 B
Bash
Raw Normal View History

2020-04-24 07:59:32 +00:00
#!/usr/bin/env bash
set -e
symfony php vendor/bin/phpcs -n \
--standard="Drupal,DrupalPractice" \
--extensions="php,module,inc,install,test,profile,theme" \
--ignore=*/tests/* \
--exclude="Drupal.Commenting.ClassComment,Drupal.Commenting.FunctionComment" \
web/modules/custom
symfony php vendor/bin/phpcs -n \
--standard="Drupal,DrupalPractice" \
--extensions="php,module,inc,install,test,profile,theme" \
--exclude="Drupal.Commenting.ClassComment,Drupal.Commenting.DocComment,Drupal.Commenting.FunctionComment,Drupal.NamingConventions.ValidFunctionName" \
web/modules/custom/**/tests
2020-04-24 07:59:32 +00:00
vendor/bin/phpstan analyze
symfony php vendor/bin/phpunit \
"$@"