From adambyrtek at gmail.com Wed Sep 9 05:51:50 2009 From: adambyrtek at gmail.com (Adam Byrtek) Date: Wed, 9 Sep 2009 11:51:50 +0200 Subject: [Cruisecontrolrb-users] Problems with do_clean_checkout In-Reply-To: References: <670d23ff0908111424m479334f4w399abf3791ce03e0@mail.gmail.com> <648eacf20908111506k522174d0udff2751ed4503d85@mail.gmail.com> <670d23ff0908120328g2c058ed6w16002bbb803795f1@mail.gmail.com> <670d23ff0908141543s35db52caua7138ae6be06e805@mail.gmail.com> Message-ID: <670d23ff0909090251iec4cc02g1b17035198d87a40@mail.gmail.com> On Sat, Aug 15, 2009 at 19:46, Brian Guthrie wrote: > Adam - thanks so much for the patch. I've gone ahead and sent you a > CCRB contributor's agreement--I'll go ahead and merge the patch > locally, but I have to hold off on merging it into master until I've > got your OK. I've just responded to your email, hope it will be enough to integrate the patch. Best regards, Adam -- Adam Byrtek From pbolliger at gmail.com Tue Sep 15 12:42:30 2009 From: pbolliger at gmail.com (Philipp Bolliger) Date: Tue, 15 Sep 2009 18:42:30 +0200 Subject: [Cruisecontrolrb-users] how to run all tests AND metric_fu Message-ID: <2A70B42B-0CA6-4CA3-8E18-8547150B69F1@gmail.com> i want to use cruisecontrol.rb to run ?rake test? (every time a new revision is in the svn repo) and ?rake metrics:all? (let?s say every 24 hours). how do i have to configure cruisecontrol.rb? both rake tasks work. however, when i configure cruisecontrol.rb as described on the metric_fu website, i.e. add 'project.rake_task = ?metrics:all? project.scheduler.polling_interval = 24.hours? to the projects cruise_config.rb, only the metrics:all task is executed, but not the tests. how do i configure cruisecontrol.rb so that both are run? From btguthrie at gmail.com Wed Sep 16 02:21:56 2009 From: btguthrie at gmail.com (Brian Guthrie) Date: Wed, 16 Sep 2009 01:21:56 -0500 Subject: [Cruisecontrolrb-users] how to run all tests AND metric_fu In-Reply-To: <2A70B42B-0CA6-4CA3-8E18-8547150B69F1@gmail.com> References: <2A70B42B-0CA6-4CA3-8E18-8547150B69F1@gmail.com> Message-ID: Hi Phillipp, The recommended way to do this is to have separate configuration options based on the name you created the project with. See, for example: http://cruisecontrolrb.thoughtworks.com/documentation/manual#project_builder_configuration Note that this requires you to have two projects configured, one as your conventional CI project and another project purely for running metrics. Add the second project using the cruise add command, like you added the original. Best of luck, and let us know if this works out for you. Brian On Tue, Sep 15, 2009 at 11:42 AM, Philipp Bolliger wrote: > > i want to use cruisecontrol.rb to run ?rake test? (every time a new revision > is in the svn repo) and ?rake metrics:all? (let?s say every 24 hours). how > do i have to configure cruisecontrol.rb? both rake tasks work. however, when > i configure cruisecontrol.rb as described on the metric_fu website, i.e. add > 'project.rake_task = ?metrics:all? project.scheduler.polling_interval = > 24.hours? to the projects cruise_config.rb, only the metrics:all task is > executed, but not the tests. how do i configure cruisecontrol.rb so that > both are run? > _______________________________________________ > Cruisecontrolrb-users mailing list > Cruisecontrolrb-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users > From thewoolleyman at gmail.com Wed Sep 16 20:50:12 2009 From: thewoolleyman at gmail.com (Chad Woolley) Date: Wed, 16 Sep 2009 17:50:12 -0700 Subject: [Cruisecontrolrb-users] how to run all tests AND metric_fu In-Reply-To: <2A70B42B-0CA6-4CA3-8E18-8547150B69F1@gmail.com> References: <2A70B42B-0CA6-4CA3-8E18-8547150B69F1@gmail.com> Message-ID: On Tue, Sep 15, 2009 at 9:42 AM, Philipp Bolliger wrote: > i want to use cruisecontrol.rb to run ?rake test? (every time a new revision > is in the svn repo) and ?rake metrics:all? (let?s say every 24 hours). how > do i have to configure cruisecontrol.rb? both rake tasks work. however, when > i configure cruisecontrol.rb as described on the metric_fu website, i.e. add > 'project.rake_task = ?metrics:all? project.scheduler.polling_interval = > 24.hours? to the projects cruise_config.rb, only the metrics:all task is > executed, but not the tests. how do i configure cruisecontrol.rb so that > both are run? Can you use something like: project.build_command = 'rake metrics:all test' -- Chad From thewoolleyman at gmail.com Tue Sep 22 17:27:01 2009 From: thewoolleyman at gmail.com (Chad Woolley) Date: Tue, 22 Sep 2009 14:27:01 -0700 Subject: [Cruisecontrolrb-users] cruisecontrol with ant In-Reply-To: <6452740f0909221318s2427a14axe2ec3fc570980d2a@mail.gmail.com> References: <6452740f0909221318s2427a14axe2ec3fc570980d2a@mail.gmail.com> Message-ID: On Tue, Sep 22, 2009 at 1:18 PM, Rodrigo Cascarrolho wrote: > Hi, > I new in this list of users and I want to use cruisecontrol.rb with ant. My > problem is that the return message of ant is "BUILD FAILED", but the message > of cruisecontrol is "Build 17251.5 finished SUCCESSFULLY". In my projetct, I > write the cruise_config.rb "project.build_command = 'ant -buildfile > ./build/Teste.xml'". If you run your ant command from the command line, what is the value of the return code 'echo $?' If it is zero, can you alter your build command to print it out? Maybe it is behaving differently under the ccrb environment. You can also try it with a dummy ant script that just succeeds or fails, and see if you get a different behavior. -- Chad From adambyrtek at gmail.com Thu Sep 24 09:38:46 2009 From: adambyrtek at gmail.com (Adam Byrtek) Date: Thu, 24 Sep 2009 15:38:46 +0200 Subject: [Cruisecontrolrb-users] how to run all tests AND metric_fu In-Reply-To: References: <2A70B42B-0CA6-4CA3-8E18-8547150B69F1@gmail.com> Message-ID: <670d23ff0909240638h2dd6d7cexd6941da56d4677e4@mail.gmail.com> On Thu, Sep 17, 2009 at 02:50, Chad Woolley wrote: > project.build_command = 'rake metrics:all test' As far as I remember metrics:all runs rcov to calculate test coverage, so you don't have to run tests again. But to have a separate interval for tests and metrics you have to configure two separate builders with two separate work directories and schedulers. Best regards, Adam -- Adam Byrtek From bcm at maz.org Fri Sep 25 02:39:27 2009 From: bcm at maz.org (Brian Moseley) Date: Thu, 24 Sep 2009 23:39:27 -0700 Subject: [Cruisecontrolrb-users] custom cruise task running plugin tests Message-ID: <29a761a00909242339x6a80cba1qfb4b29d9c1cafe32@mail.gmail.com> I've created the following custom rake tasks to run rspec and cucumber: === desc "Task for CruiseControl.rb" task :cruise => ['test:prepare', "spec", "cucumber"] do puts "done" end namespace :test do desc "Set up test environment" task :prepare do RAILS_ENV = 'test' end end === when I run this task at the command line, the command completes successfully, like so: === $ rake cruise ... stuff happens ... 83 scenarios (83 passed) 512 steps (512 passed) 0m53.207s done Loaded suite /usr/local/bin/rake Started Finished in 0.000357 seconds. 0 tests, 0 assertions, 0 failures, 0 errors === when cc runs a build, however, it seems to be descending into my project's vendor/plugins and running the test task: === [CruiseControl] Invoking Rake task "cruise" .... stuff happens ... 83 scenarios (83 passed) 512 steps (512 passed) 0m53.414s /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- shoulda (MissingSourceFile) from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' from /var/lib/gems/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:156:in `require' from /var/lib/gems/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:521:in `new_constants_in' from /var/lib/gems/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:156:in `require' from ./vendor/plugins/acts_as_audited/test/test_helper.rb:12 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' from /var/lib/gems/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:156:in `require' from /var/lib/gems/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:521:in `new_constants_in' from /var/lib/gems/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:156:in `require' from /usr/lib/ruby/1.8/test/unit/collector/dir.rb:90:in `collect_file' from /usr/lib/ruby/1.8/test/unit/collector/dir.rb:73:in `recursive_collect' from /usr/lib/ruby/1.8/test/unit/collector/dir.rb:58:in `each' from /usr/lib/ruby/1.8/test/unit/collector/dir.rb:58:in `recursive_collect' from /usr/lib/ruby/1.8/test/unit/collector/dir.rb:63:in `recursive_collect' from /usr/lib/ruby/1.8/test/unit/collector/dir.rb:58:in `each' from /usr/lib/ruby/1.8/test/unit/collector/dir.rb:58:in `recursive_collect' from /usr/lib/ruby/1.8/test/unit/collector/dir.rb:63:in `recursive_collect' from /usr/lib/ruby/1.8/test/unit/collector/dir.rb:58:in `each' from /usr/lib/ruby/1.8/test/unit/collector/dir.rb:58:in `recursive_collect' from /usr/lib/ruby/1.8/test/unit/collector/dir.rb:63:in `recursive_collect' from /usr/lib/ruby/1.8/test/unit/collector/dir.rb:58:in `each' from /usr/lib/ruby/1.8/test/unit/collector/dir.rb:58:in `recursive_collect' from /usr/lib/ruby/1.8/test/unit/collector/dir.rb:63:in `recursive_collect' from /usr/lib/ruby/1.8/test/unit/collector/dir.rb:58:in `each' from /usr/lib/ruby/1.8/test/unit/collector/dir.rb:58:in `recursive_collect' from /usr/lib/ruby/1.8/test/unit/collector/dir.rb:29:in `collect' from /usr/lib/ruby/1.8/test/unit/autorunner.rb:68 from /usr/lib/ruby/1.8/test/unit/autorunner.rb:213:in `[]' from /usr/lib/ruby/1.8/test/unit/autorunner.rb:213:in `run' from /usr/lib/ruby/1.8/test/unit/autorunner.rb:12:in `run' from /usr/lib/ruby/1.8/test/unit.rb:278 from -e:1 done ================================================================================ Using rails gem: rails-2.3.3 dir : /home/warhorn/.cruise/projects/warhorn2/work command : echo /home/warhorn/.cruise/projects/warhorn2/work warhorn$ ruby1.8\ -e\ \"require\ \'rubygems\'\ rescue\ nil\;\ require\ \'rake\'\;\ load\ \'/usr/local/cruisecontrol-1.4.0/tasks/cc_build.rake\'\;\ ARGV\ \<\<\ \'--nosearch\'\ \<\<\ \'cc:build\'\;\ Rake.application.run\;\ ARGV.clear\" >> /home/warhorn/.cruise/projects/warhorn2/build-47a964e.1/build.log && ruby1.8 -e "require 'rubygems' rescue nil; require 'rake'; load '/usr/local/cruisecontrol-1.4.0/tasks/cc_build.rake'; ARGV << '--nosearch' << 'cc:build'; Rake.application.run; ARGV.clear" >> /home/warhorn/.cruise/projects/warhorn2/build-47a964e.1/build.log 2>&1 exitstatus: 1 === am I missing something about the cc environment that would cause it to try to run the test task for the project's plugins? I looked at the cc build tasks, but that didn't shed any light on the subject. thanks!