oliverdavies.uk-drupal-old/bin/run-tests.sh
Oliver Davies 7a9bf80a89 Automatically update the created date for talks
Automatically update the created dates for talk nodes so that they match
the most-future event. This means that the talks are ordered correctly
on the Talks page.
2020-05-09 02:16:25 +01:00

23 lines
691 B
Bash
Executable file

#!/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
vendor/bin/phpstan analyze
symfony php vendor/bin/phpunit \
-c web/core \
"$@"