OCaml Forge

Forum: cia-bot-for-forge.ocamlcore.org--git-

Posted by: Sylvain Le Gall
Date: 2010-04-28 09:38
Summary:CIA bot for forge.ocamlcore.org (Git)
Project:Site Admin

Hello all,

With a little help from OCamlCore.org administrator, our fellow OCaml developper ygrek has set up a CIA bot for one of his project.

You need to be login to forge.ocamlcore.org with ssh. Here is his recipe.

$ cd /gitroot/ocaml-mysql/ocaml-mysql.git
$ wget http://cia.vc/clients/git/ciabot.pl
$ vi ciabot.pl
# review configuration section, set project name and email address, ensure $xml_rpc=0

# setup update hook
$ cat hooks/update
refname=${1#refs/heads/}
[ "$refname" = "master" ] && refname=
oldhead=$2
newhead=$3
for merged in $(git-rev-list $newhead ^$oldhead | tac); do
/gitroot/ocaml-mysql/ocaml-mysql.git/ciabot.pl $merged $refname
done
$ chmod a+x hooks/update

Thanks to ygrek for this recipe.

Sylvain Le Gall

Latest News

planet.ocamlcore.org is deprecated

Sylvain Le Gall - 2016-09-09 19:35 -

planet.ocamlcore.org will soon be deprecated

Sylvain Le Gall - 2016-08-12 07:26 -

forge.ocamlcore.org and related websites unstable

Sylvain Le Gall - 2016-06-14 21:13 -

forge.ocamlcore.org NOT reported as unsafe anymore

Sylvain Le Gall - 2016-03-29 09:55 -

Discussion Forums: cia-bot-for-forge.ocamlcore.org--git-

Monitor Forum | Start New Thread Start New Thread