library hooks
AppVentus custom git hooks
appventus/hooks
AppVentus custom git hooks
- Monday, August 5, 2013
- by paulandrieux
- Repository
- 11 Watchers
- 2 Stars
- 44 Installations
- Shell
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
Hooks
This tool insert a git hook that will run php syntax checks and phpunit tests for your symfony2 application., (*1)
1) Installation
add thoose lines in your composer.json :, (*2)
"require-dev": {
[...],
"appventus/hooks": "dev-master"
},
"scripts": {
"post-update-cmd": [
[...],
"chmod a+x vendor/appventus/hooks/deploy.sh && sh vendor/appventus/hooks/deploy.sh"
]
},
2) 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, (*3)
Enjoy !, (*4)
dev-master
9999999-dev
AppVentus custom git hooks
Sources
Download
MIT
test
phpunit
git
syntax
hooks