Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 1.17 KB

example-quick-wizard.md

File metadata and controls

48 lines (37 loc) · 1.17 KB

Back to top

Project configuration quick example

Expanded version.

Install GIT hook files in project

To enable GIT hooks (detailed info):

$ commithook install

Set up issue tracker integration

$ commithook tracker:wizard

PHP CodeSniffer integration

Fetch PHPCS package (for CommitHook global installation):

$ composer global require squizlabs/php_codesniffer:~2.0@stable

Install exists configuration for Magento 1.x

Fast install (Magento 1.x ECG standards)

Go to your project git root directory and run commands:

$ curl https://codeload.github.com/andkirby/commithook-standard/tar.gz/magento-ecg | tar zxf -
$ mv -f commithook-standards-magento-ecg/.co* .
$ rm -rf commithook-standards-magento-ecg/

Install magento-ecg standards

$ composer --working-dir=.coding-standards install -o

Test integration

You may make quick test for the integration here.

Share commithook files with your team

$ git add .commithook .coding-standards .commithook.xml
$ git commit -m '@@through Added commithook files.' && git push

Back to top