Skip to content

Launches some usefull commands (phpunit, php-cs-fixer, svn update) before committing your SVN changes

License

Notifications You must be signed in to change notification settings

ousamabenyounes/ShellVCSCommit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

ShellVCSCommit

This shell script launches some useful commands before committing your GIT/SVN/Mercurial changes:

  1. First it launches your phpunit tests suite:
  • You can specify your CodeCoverage Directory (-d option)
  • You can add phpunit specific options (-o option)
  1. an svn update command is sent

  2. Then this script executes php-cs-fixer to reformat your source code

  • You can specify the source directory you want to reformat before commit
  1. Final main commit

Requirements

PhpUnit:

$ pear config-set auto_discover 1
$ pear install pear.phpunit.de/PHPUnit

PHP_CodeSniffer:

$ pear install PHP_CodeSniffer

php-cs-fixer:

$ sudo curl http://cs.sensiolabs.org/get/php-cs-fixer.phar -o /usr/local/bin/php-cs-fixer
$ sudo chmod a+x /usr/local/bin/php-cs-fixer

About

Launches some usefull commands (phpunit, php-cs-fixer, svn update) before committing your SVN changes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages