Continuous integration - how do you do it?

Hi All,

In the absence of any clear picture about whether damagecontrol is a
practical option for continuous integration, I set up the following
scripts on my server to run the rails functional and unit tests each day
and mail me the results:


cd /var/www/ruby/srjoseph/prometheus
rake test_functional &> /tmp/tmpfile_dis_dev_func
more /tmp/tmpfile_dis_dev_func | mail -s “$( grep ‘[:digit:]* tests,
[:digit:]*’ /tmp/tmpfile_dis_dev_func)” [email protected]
rm /tmp/tmpfile_dis_dev_func


cd /var/www/ruby/srjoseph/prometheus
rake test_units &> /tmp/tmpfile_dis_dev_unit
more /tmp/tmpfile_dis_dev_unit | mail -s “$( grep ‘[:digit:]* tests,
[:digit:]*’ /tmp/tmpfile_dis_dev_unit)” [email protected]
rm /tmp/tmpfile_dis_dev_unit

Now these are a bit of a hack but they do the job as long as you don’t
make the mistake that I did which is to run them at the same time using

[email protected]:/var/www/ruby/srjoseph/prometheus # crontab -l -u
0 1 * * * /var/www/ruby/srjoseph/prometheus/
0 1 * * * /var/www/ruby/srjoseph/prometheus/

because then you’ll get db errors as one process is tearing down the
test db while the other one is trying to build it etc.

Anyhow, I would be very interested to hear how others are achieving
continuous integration with rails.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs