A nice way of telling CIJoe (or any other CI service) what to do is to commit git configuration under, for example, git-config.
Here’s what a typical git-config/config looks like. It’s the same as your usual .git/config.
We’re going to have a remote [origin] and a [cijoe] section that tells CIJoe what to do.
We can also have two scripts, git-config/build-worked and git-config/build-failed. Here’s the latter.
How do we hook this up? CIJoe tells us to place all this stuff into .git/hooks.
We can just trick it with some symbolic links on the CI server.
cd .git rm config ln -s ../git-config/config . cd hooks ln -s ../../git-config/build-failed . ln -s ../../git-config/build-worked .