Skip to content

Instantly share code, notes, and snippets.

@veewee
Last active June 9, 2020 05:09
Show Gist options
  • Save veewee/62948773c05f91f26284b4f48bceb7b1 to your computer and use it in GitHub Desktop.
Save veewee/62948773c05f91f26284b4f48bceb7b1 to your computer and use it in GitHub Desktop.
GrumPHP on docker-compose
parameters:
git_hook_variables:
EXEC_GRUMPHP_COMMAND: docker-compose run --rm --no-deps php-fpm php
tasks:
phpcsfixer2:
config: ".php_cs.dist"
config_contains_finder: true
yamllint:
parse_custom_tags: true
phpunit: ~
git_commit_message:
matchers:
"Jira issuenumber": "/JIRA-([0-9]*)/i"
composer:
metadata:
blocking: false
psalm: ~
@veewee
Copy link
Author

veewee commented Jun 9, 2020

When you change something in the git_hook_variables section, you must run grumphp git:init in order to write it to the git hook files.
You can debug your hook files in the .git/hooks directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment