Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

AppVentus/Hooks

Repository files navigation

Hooks

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 !

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages