From sellingangle at hotmail.com Mon Oct 11 13:13:34 2010 From: sellingangle at hotmail.com (juan leal) Date: Mon, 11 Oct 2010 12:13:34 -0500 Subject: [Cruisecontrolrb-users] Cruise Control, rvm and managing builds. Message-ID: I understand that currently CruiseControl.rb is limited to ruby 1.8.6 or earlier. Does this mean that it cannot be used to manage a rails project we have in ruby 1.9.2 (rails 3). Follow up question to this is can it manage projects written in different ruby versions. Forexample we have a few projects in 1.8.7, 1.9.2 and such. I would imagine this could doneusing rvm somehow but I could not find anything in the documentation regarding this. Please let me know. Thank You,Juan Leal -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexey.verkhovsky at gmail.com Wed Oct 13 16:34:14 2010 From: alexey.verkhovsky at gmail.com (Alexey Verkhovsky) Date: Wed, 13 Oct 2010 14:34:14 -0600 Subject: [Cruisecontrolrb-users] Cruise Control, rvm and managing builds. In-Reply-To: References: Message-ID: CC.rb is running fine and dandy on RubyEE 1.8.7 for me. As for using different interpreters for running CC.rb itself and the builds - that shouldn't be hard, either. You can specify the build command for the project, and use a shell script that invoke another interpreter to run the build. --Alex On Mon, Oct 11, 2010 at 11:13 AM, juan leal wrote: > I understand that currently CruiseControl.rb is limited to ruby 1.8.6 or > earlier. > > Does this mean that it cannot be used to manage a rails project we have in > ruby 1.9.2 (rails 3). > > Follow up question to this is can it manage projects written in different > ruby versions. For > example we have a few projects in 1.8.7, 1.9.2 and such. I would imagine > this could done > using rvm somehow but I could not find anything in the documentation > regarding this. > > Please let me know. > > Thank You, > Juan Leal > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > > -- Alexey Verkhovsky http://alex-verkhovsky.blogspot.com/ CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] -------------- next part -------------- An HTML attachment was scrubbed... URL: From matthew.oriordan at gmail.com Fri Oct 15 12:36:13 2010 From: matthew.oriordan at gmail.com (Matthew O'Riordan) Date: Fri, 15 Oct 2010 17:36:13 +0100 Subject: [Cruisecontrolrb-users] CruiseControl.rb with RVM & Bundler Message-ID: Hi all I've recently installed CruiseControl.rb and have a variety of Ruby & Rails projects which I am looking to use CC with. Unfortunately the projects use a variety of gem bundles, and even worse, different version of Ruby. As such, I really need to get RVM and ideally bundler working with CruiseControl. Has anyone made any progress with this? I've done some searching, and can't seem to find anyone who has as yet got it working. Any advice and pointers in the right direction would be appreciated. Matt BTW. I realise there is a post at http://groups.google.com/group/cruisecontrolrb-rubyforge-mailing-list/browse_thread/thread/81892db289a9a360 and I have tried to post to this, but unfortunately my posts have disappeared. -------------- next part -------------- An HTML attachment was scrubbed... URL: From matthew.oriordan at gmail.com Fri Oct 15 12:41:39 2010 From: matthew.oriordan at gmail.com (Matthew O'Riordan) Date: Fri, 15 Oct 2010 17:41:39 +0100 Subject: [Cruisecontrolrb-users] CruiseControl.rb and Database settings Message-ID: <260BDDA8-9AAA-47A1-8C70-6DCBBF3077A7@gmail.com> Hi all I have set up CruiseControl.rb on an Ubuntu box, and all seems to be working quite well at present. However, I am not sure how best to approach the issue of using database settings specific to the CC server and not storing these anywhere in the source control repository. I read an article at http://blog.lrdesign.com/2010/02/howto-setting-up-cruisecontrol-rb-on-slicehost/ which suggest you make the following change to the cruise_config.rb file: project.build_command = 'rake ci:run[localhost,root,,] --trace RAILS_ENV=test' The problem I have with that is that in order to get CC working with Bundler I've created a build_my_app.sh shell script and have that referenced in the build command. In that file I have something along the lines of bundle install ruby -e "require 'rubygems' rescue nil; require 'rake'; load '/Users/matt/cruisecontrol/tasks/cc_build.rake'; ARGV << '--nosearch' << 'cc:build'; Rake.application.run; ARGV.clear" So where and how do I inject database settings specific for this CC server? Sorry if I am asking stupid questions, but I'm only one day into using CruiseControl.rb. Thanks, Matthew O'Riordan -------------- next part -------------- An HTML attachment was scrubbed... URL: From todd.sedano at sv.cmu.edu Fri Oct 15 13:04:43 2010 From: todd.sedano at sv.cmu.edu (Todd Sedano) Date: Fri, 15 Oct 2010 10:04:43 -0700 Subject: [Cruisecontrolrb-users] CruiseControl.rb with RVM & Bundler In-Reply-To: References: Message-ID: Matt, I recently went through the pain of trying to get CruiseControl to work with rvm and bundler. I'm not a build expert and would rather spend my time writing code. Unfortunately, the cruise control documentation has not been updated to reflect these new technologies. I teach a course where we have 25 student teams using a build machine and next year we will be switching to a different product. Cruise Control and bundler --- Chad Woolley and I had an email thread on the group about a month ago, please check it out. (Bundler and cruise control.rb 6/17/10, 7/14, 9/24) He had some very good suggestions, but I needed a little more explicit guidance. In the end, for me to get bundler to work with cruise control, this is what I did: a) modify .cruise/projects/NAME/cruise_config.rb to execute a shell command. In this case, I choose project.build_command = '../build_my_app.sh' because my build scripts were not in source control. Since I was working with student teams, I wanted them all on the build machine. Perhaps next time I would put them in source control. b) create build_my_app.sh bundle install ruby -e "require 'rubygems' rescue nil; require 'rake'; load '/Users/tsedano/cruisecontrol-1.4.0/tasks/cc_build.rake'; ARGV << '--nosearch' << 'cc:build'; Rake.application.run; ARGV.clear" The first line runs bundle install as the cruise control unix user, the second line is the line that my cruise control normally executes; I got it from the build logs I tried several variants to get bundler to work from lib/tasks/cruise.rake but was not successful. When cruise.rake executes it needs to have the rails environment ready, but it wasn't since bundle hadn't been run yet. I'm sure there is a better way to do this, but I wasn't able to get it to work. Cruise Control and rvm --- As the command prompt, I was using bundler 1.0.2, but when cruise control was running, it was using bundler 0.9.6 for some projects -- I couldn't find how and where it was getting the wrong bundler from my filesystem. In the end, I disabled rvm, found the 0.9.6 gem, and then was able to uninstall it. I suspect that cruise control is running as a different user on my system. I decided not to reinstall rvm. I briefly was considering switching to Hudson or Team City. While I was looking at those products, I came across this thread. If I had more time, I would try out some of the commands in their shell script to see if it would get Cruise Control to work well with rvm. http://groups.google.com/group/rubyversionmanager/browse_thread/thread/d2271d37ad7f844f If you are able to get this to work, please post back to the group. Also, please try and find the cruise control website maintainers and get the official documentation updated. I would do that, but I'm not convinced this is the "right" way to solve the problem. Todd On Fri, Oct 15, 2010 at 9:36 AM, Matthew O'Riordan < matthew.oriordan at gmail.com> wrote: > Hi all > > I've recently installed CruiseControl.rb and have a variety of Ruby & Rails > projects which I am looking to use CC with. Unfortunately the projects use > a variety of gem bundles, and even worse, different version of Ruby. As > such, I really need to get RVM and ideally bundler working with > CruiseControl. > > Has anyone made any progress with this? I've done some searching, and > can't seem to find anyone who has as yet got it working. > > Any advice and pointers in the right direction would be appreciated. > > Matt > > BTW. I realise there is a post at > http://groups.google.com/group/cruisecontrolrb-rubyforge-mailing-list/browse_thread/thread/81892db289a9a360 and > I have tried to post to this, but unfortunately my posts have disappeared. > > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From todd.sedano at sv.cmu.edu Fri Oct 15 13:09:33 2010 From: todd.sedano at sv.cmu.edu (Todd Sedano) Date: Fri, 15 Oct 2010 10:09:33 -0700 Subject: [Cruisecontrolrb-users] CruiseControl.rb and Database settings In-Reply-To: <260BDDA8-9AAA-47A1-8C70-6DCBBF3077A7@gmail.com> References: <260BDDA8-9AAA-47A1-8C70-6DCBBF3077A7@gmail.com> Message-ID: I'm also a cruisecontrol novice, but this is how I solve the problem. I don't check the config/database.yml file into source control. I create a .gitignore or .svnignore so that it doesn't accidentally end up in the repository. After I create the project on the build machine, I go to the .cruise/projects/NAME/work directory and create my own config/database.yml file This works provided that no one checks in a config/database.yml file I'm hoping one of the advance users will tell of a better way =) Thanks, Todd -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexey.verkhovsky at gmail.com Fri Oct 15 13:32:09 2010 From: alexey.verkhovsky at gmail.com (Alexey Verkhovsky) Date: Fri, 15 Oct 2010 11:32:09 -0600 Subject: [Cruisecontrolrb-users] CruiseControl.rb and Database settings In-Reply-To: References: <260BDDA8-9AAA-47A1-8C70-6DCBBF3077A7@gmail.com> Message-ID: On Fri, Oct 15, 2010 at 11:09 AM, Todd Sedano wrote: > I don't check the config/database.yml file into source control. I create a > .gitignore or .svnignore so that it doesn't accidentally end up in the > repository. > > After I create the project on the build machine, I go to the > .cruise/projects/NAME/work directory and create my own config/database.yml > file > i'm a big fan of simple soltions that work, so that's exactly how I like to do it. On the premise that not every developer's box should contain access details to all of our umpteen production databases, anyway. Therefore, source-control config/database.yml.example and have it symlinked as database.yml on development machines. Symlink to a local file like /etc/myapplication/database.yml on prod and ci servers. Problem solved. -- Alexey Verkhovsky http://alex-verkhovsky.blogspot.com/ CruiseControl.rb [http://cruisecontrolrb.thoughtworks.com] -------------- next part -------------- An HTML attachment was scrubbed... URL: