Skip to content
Snippets Groups Projects
Commit 8a5b88e5 authored by jurgenhaas's avatar jurgenhaas
Browse files

Merge branch 'develop' into 'main'

Merging develop into main

See merge request !12
parents 6e6d746e 7998ac22
No related branches found
Tags v3.2.8
1 merge request!12Merging develop into main
Pipeline #1113311 passed
......@@ -49,7 +49,12 @@ commands:
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
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
phpstanmodule:
cmd: |
......@@ -74,3 +79,22 @@ commands:
if [[ -f tests/junit/${module}.xml ]]; then JUNIT=--junit=tests/junit/${module}.xml; fi
ahoy d4d exec vendor/bin/phpmetrics --report-html=tests/metrics/$module $JUNIT web/modules/contrib/$module $@
usage: PHP Metrics by module
stylelintprepare:
cmd: |
/usr/local/bin/node_cmd yarn --cwd web/core add stylelint-junit-formatter $@
usage: Prepare environment for style linter
stylelintmodule:
cmd: |
module=$1
shift
/usr/local/bin/node_cmd yarn --silent --cwd web/core stylelint --formatter verbose --config ./.stylelintrc.json "../modules/contrib/${module}/**/*.css" --color $@
usage: Stylelint tests by module
eslintmodule:
cmd: |
module=$1
shift
cd web/modules/contrib/$module
test -e .prettierrc.json || ln -s /drupal/web/core/.prettierrc.json .
test -e .prettierignore || echo '*.yml' > .prettierignore
/drupal/web/core/node_modules/.bin/eslint --no-error-on-unmatched-pattern --ignore-pattern="*.es6.js" --resolve-plugins-relative-to=/drupal/web/core --ext=.js,.yml . $@
usage: Eslint tests by module
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