appventus/hooks

This package is abandoned and no longer maintained. No replacement package was suggested.

AppVentus custom git hooks

Installs: 52

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 11

Forks: 0

Open Issues: 0

Language:Shell

dev-master 2013-08-05 09:45 UTC

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.

  1. 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"
    ]
},
  1. 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 !