Thanks a lot.It worked. But i got some error in migrations which i will figure it out. Also i have some queries which are as follows: 1: How do i point it to my Rspec test cases? 2: By default it takes production environment?Can we change this to test environment?Or should we run the cruise control always in production environment? Since Rspec uses test environment how can we do this in cruisecontrol? 3: If the build is failed we get mail.Can we get mail if the build is passed along with all the tests?
Thanks & Regards, Amit K Kulkarni On Fri, Jan 15, 2010 at 4:57 PM, Chad Woolley <[email protected]>wrote: > On Fri, Jan 15, 2010 at 4:06 AM, Amit Kulkarni > <[email protected]> wrote: > > Project.configure do |project| > > project.email_notifier.emails = ["[email protected]"] > > project.email_notifier.from = ["[email protected]"] > > case project.name > > when 'testproject' then testproject.rake_task = 'spec:controllers' > > else raise "Don't know what to build for project > > #{project.name.inspect}" > > end > > end > > > > Could not load project configuration: uninitialized constant testproject > in > > The error is Ruby telling you have not defined 'testproject'. > > However, you shouldn't be doing this in cruise config anyway. Remove > the case statement from cruise config, and it should just work. This > is because cruise will run your default rake task by default, which in > Rails should run your tests. If you want to do something other than > the default rake task, create a 'cruise' rake task and cruise will run > that automatically. > > -- Chad > _______________________________________________ > Cruisecontrolrb-users mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users >
_______________________________________________ Cruisecontrolrb-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users
