CODING 1.09 KB
Newer Older
1
= Coding Standards =
2

3 4
Please follow our coding standards when developing:
https://tuleap.ring.cx/plugins/mediawiki/wiki/ring/index.php?title=Libring_-_Coding_Rules
5

6
= Gerrit Workflow =
7

8 9
Gerrit is used as a code review tool. It is also the primary Git repository.
Wiki documentation: https://tuleap.ring.cx/plugins/mediawiki/wiki/ring/index.php?title=Working_with_Gerrit
10

11
== Commit Messages ==
Emmanuel Milou's avatar
Emmanuel Milou committed
12

13
Indicate the number of the related Tuleap issue in your commit message.
Emmanuel Milou's avatar
Emmanuel Milou committed
14

15 16
== commit-msg hook ==

17 18 19 20 21
The Gerrit commit-msg hook must be installed before code reviews can be pushed to Gerrit.
This is because Gerrit relies on a unique Change-Id that can be tracked. The commit-msg hook
takes care of inserting a Change-Id in your commit messages for you.

It can be installed in your local git repository with the following command:
Guillaume Roguez's avatar
Guillaume Roguez committed
22
$ gitdir=$(git rev-parse --git-dir); scp -p -P 29420 username@gerrit-ring.savoirfairelinux.com:hooks/commit-msg ${gitdir}/hooks/
23

24
== Gerrit integration with Jenkins ==
25 26 27

* http://strongspace.com/rtyler/public/gerrit-jenkins-notes.pdf
* https://wiki.jenkins-ci.org/display/JENKINS/Gerrit+Trigger