cruisecontrol.rb
cruisecontrol.rb copied to clipboard
Detect and execute .rvmrc files before building
Currently CC.rb doesn't integrate with RVM, in the sense that it has no way to automatically handle any .rvmrc files that might be checked into your project. You can handle them yourself with a custom build script, but the default build mechanism does nothing for you. If this is a feature that would be helpful, we should target it for a future release.
This is still an issue. I'd love to see this implemented. Circumvented it in the meantime by following this guide: http://pivotallabs.com/users/mbarinek/blog/articles/1450-rails-3-with-rvm-and-cruise-control
Thanks for the link to the guide - I hadn't seen it before, but it seems like a nice, lightweight solution. If that would suffice for your needs then I'd be happy to follow it as a template for this feature.
Yep! sourcing RVM into the environment is all that's necessary.
Similar issue with rbenv ... also consider detecting .ruby-version (which both rvm and rbenv detect)