Git: pre-receive hook with PHP_CodeSniffer

后端 未结 10 1596
情话喂你
情话喂你 2021-02-04 07:51

Since switching from SVN to Git, we lost the ability to enforce our coding standards through a pre-commit hook on the subversion server.

With Git, you only

10条回答
  •  隐瞒了意图╮
    2021-02-04 08:20

    use jenkins + gerrit:

    http://alblue.bandlem.com/2011/02/gerrit-git-review-with-jenkins-ci.html

    if your build fails, the push will be rejected.

    http://source.android.com/source/life-of-a-patch.html

    Tyrael

提交回复
热议问题