Updated 21 Dec 2009: modified code to work with integrity v. 0.2.9
Integrity is a great little continuous integration server, even if it is a little rough around the edges.
Out of the box Integrity expects that you will trigger all your builds using github’s post receive hooks - although you need to be aware of this bug which means you have to miss the .git of the end of the project’s git repository URI when setting this up.
I however prefer to poll my project’s repositories for changes so that they do not need to be aware of my Integrity server.
If you are using Integrity v0.2.9 or greater then this can be achieved by adding the following rake task to the Rakefile in your Integrity installation.
Then set up a cron job by adding the something like the following entry to your crontab. This will to automatically check every 2 minutes to see if there are any outstanding commits of your project to build. You will need to replace the /path/to/ section in each of the paths with appropriate values for your system.
Alternatively, if you are using an earlier version of integrity
Or, if you want to add build triggers to git repositories not on github then take a look at morethanseven’s post commit hook.