appventus / hooks
AppVentus custom git hooks
Installs: 52
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 11
Forks: 0
Open Issues: 0
Language:Shell
This package is not auto-updated.
Last update: 2023-07-31 09:24:36 UTC
README
This tool insert a git hook that will run php syntax checks and phpunit tests for your symfony2 application.
- Installation
add thoose lines in your composer.json :
"require-dev": {
[...],
"appventus/hooks": "dev-master"
},
"scripts": {
"post-update-cmd": [
[...],
"chmod a+x vendor/appventus/hooks/deploy.sh && sh vendor/appventus/hooks/deploy.sh"
]
},
- Usage
When you'll commit a change, syntax and phpunit will run. In case of fail, the commit will be aborted You can run the commit without validation: git commit -n
Enjoy !