Permalink
Browse files

CI config updates: do not send CI emails unless explicitly enabled, u…

…se 'gem update --system', and send emails from an address which can post to the core list

[#3116 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information...
1 parent 13fb26b commit 70ed47f5b41f3e99f96e14da4299af260a6bcb79 @thewoolleyman thewoolleyman committed with jeremy Aug 30, 2009
Showing with 7 additions and 3 deletions.
  1. +7 −3 ci/cruise_config.rb
View
@@ -1,5 +1,9 @@
Project.configure do |project|
- project.build_command = 'ruby ci/ci_build.rb'
- project.email_notifier.emails = ['rubyonrails-core@googlegroups.com', 'thewoolleyman@gmail.com','michael@koziarski.com', 'david@loudthinking.com', 'jeremy@bitsweat.net', 'josh@joshpeek.com', 'pratiknaik@gmail.com', 'wycats@gmail.com']
- project.email_notifier.from = 'thewoolleyman+railsci@gmail.com'
+ # Send email notifications about broken and fixed builds to core mailing list
+ if Socket.gethostname =~ /ci.rubyonrails.org/ && ENV['ENABLE_RAILS_CI_EMAILS'] == 'true'
+ project.email_notifier.emails = ['rubyonrails-core@googlegroups.com']
+ end
+
+ project.build_command = 'sudo gem update --system && ruby ci/ci_build.rb'
+ project.email_notifier.from = 'thewoolleyman@gmail.com'
end

0 comments on commit 70ed47f

Please sign in to comment.