Hello all,
I am new to use cruisecontrol and want some help about configuring a
project.
Following are the things which i have done.
1:I have added a project named testproject
2:I had configured the mail address.
3:It starts building when somebody checks in.

I had written some Rspec testcases and i want to run them as soon as the
build starts
This is how my cruise_config.rb looks like which is under
.cruise/projects/testproject

Project.configure do |project|
  project.email_notifier.emails = ["a...@gmail.com <a...@joshsoftware.com>"]
  project.email_notifier.from = ["test...@gmail.com<test...@joshsoftware.com>
"]
  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

When i run the build i am getting error as :
BUILD LOG
---------
Could not load project configuration: uninitialized constant testproject in
./lib/cruise_control/../../
script/../config/../vendor/rails/actionpack/lib/../../activesupport/lib/active_support/dependencies.rb:267:in
`load_missing_constant'

PROJECT SETTINGS
----------------
# Project-specific configuration for CruiseControl.rb

Project.configure do |project|
 project.email_notifier.emails = ["a...@joshsoftware.com"]
 project.email_notifier.from = ["test...@joshsoftware.com"]
 case project.name
   when 'testproject.Quick' then testproject.rake_task = 'spec:controllers'
     else raise "Don't know what to build for project
#{project.name.inspect}"
   end
end
_______________________________________________
Cruisecontrolrb-users mailing list
Cruisecontrolrb-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users

Reply via email to