Hudson, Sonar & Ruby: Continuous integration of a Rails app

I’m currently playing (well battling at times – VMWare can be an arse at times – or maybe i’ve been away for too long) with plugging a rails app into Hudson and Sonar.

My intention is to have the Rails app on a separate server from the Hudson server and have the Rails app return Hudson-friendly XML from RSpec and Cucumber tests. When i get this to work, it’ll enable me to roll this out at work, with a central Hudson server (perhaps) that interacts with multiple app servers of various technologies and, along with the wonders of Sonar, gives a view into code test coverage, pass rate and complexity. I feel that i might struggle convincing Sonar to play with Ruby, but we’ll see.

Why Hudson?

To be completely honest, at work, i didn’t make that decision and am yet to chase down exactly why it was chosen over CruiseControl, but I completely trust those that made the decision on their project. I’m a big believer in standardising and am as such following suit and trying out Hudson.



3 Responses (Add Your Comment)

  1. How do you have Sonar set up with your Rails Project? Any good links or tuts?

    Thanks

  2. Huge apologies Tom for not spotting this comment until now! That sucks!

    I’ll have to get back to you on the Sonar and Rails setup as i got busy on other things and dropped it. I’ll be picking up again in December. Let me know if you progressed with this.

  3. Did you manage to get back to it? How did it work out?

    We’re just now evaluating a switch from cruisecontrol.rb to Hudson for a Rails project. Another group here is evaluating Bamboo for some Java projects and something like your intended setup would be part of the puzzle for Hudson to be the preferred choice for us.

Leave a Reply

Formatting: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>