Friday, July 24, 2009

How to Setup IntegrityApp (A continuous integration tool for Ruby on Rails)

CI a buzz word in the latest technology has hit us too., and we started off to go with IntegrityApp for our Rails Application, but then there were few technical issues which on tweeking were solved and now is made available for you to make use and make it run for your projects in no time.

the git clone url for the integrityapp (After the changes being incorporated)

git clone git://github.com/wholly/integrity.git

Then follow these steps and go on installing the Integrity :

These are the detailed steps for your reference


1) Installing the Git from the git clone

git clone git://github.com/wholly/integrity.git

2) Now following the steps in the github, firstly installing the sinatra gem

(i) To Install sinatra, you need to have rack

gem install rack

(ii) Now go ahead to install the sinatra gem

gem install sinatra-sinatra -s http://gems.github.com

3) Next with thin and sqlite adapters (as mysql is not working with Integrity yet) and oauth

gem install thin do_sqlite3

gem install oauth

gem install -s http://gems.github.com jstewart-yammer4r (* if you would like to have notifiers to YAMMER)

4) Copy the sample configurations file as a config.ru

cp config/config.sample.ru config/config.ru

5) Now the db yml file as well and change the settings according to your needs and also the paths in the file for builds and logs

cp config/config.sample.yml config/config.yml

6) Db Migrate step

bin/integrity migrate_db

7) make sure these directories exist :
(i) :export_directory --> The directory path which you have specified in config.yml
(ii) /tmp/integrity-exports/cache

8) Starting the server

thin -C config/config.yml -R config/config.ru start

**This is what worked for me (make sure all path variables are added)
~/.gem/ruby/1.8/bin/thin -C config/config.yml -R config/config.ru start
(Add bin to your paths)

**NOTE: IN CASE IF THERE ARE ANY ERRORS AND YOU WISH TO DEBUG PLS GO AHEAD AND START THE SERVER AS

bin/integrity launch

9) starting with new Project

open localhost:3000 ( default port is 3000)

and create a new project and click on Manual Build. It doesn't give you any signs of the process being completed, upon returning to the projects page, you will find the details of the build

1 comment: