Changeset 1143
- Timestamp:
- 04/11/05 10:57:23 (3 years ago)
- Files:
-
- tools/cia/trunk/app/models/build.rb (modified) (2 diffs)
- tools/cia/trunk/app/models/notifier.rb (modified) (1 diff)
- tools/cia/trunk/app/services/agent.rb (modified) (2 diffs)
- tools/cia/trunk/config/environment.rb (modified) (1 diff)
- tools/cia/trunk/README (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tools/cia/trunk/app/models/build.rb
r1123 r1143 2 2 3 3 class Build < ActiveRecord::Base 4 RAKE = "/usr/local/bin/rake"5 4 6 5 belongs_to :project … … 23 22 def make 24 23 log "Making..." 25 [ `cd #{directory} && #{RAKE }`, ($?.exitstatus == 0) ]24 [ `cd #{directory} && #{RAKE_PATH}`, ($?.exitstatus == 0) ] 26 25 end 27 26 tools/cia/trunk/app/models/notifier.rb
r1120 r1143 4 4 @body = { "build" => build } 5 5 @recipients = build.project.email_addresses_to_be_notified 6 @from = 'CIA <cia@rubyonrails.com>'6 @from = NOTIFIER_FROM_ADDRESS 7 7 @sent_on = sent_at 8 8 @headers = {} tools/cia/trunk/app/services/agent.rb
r1119 r1143 1 1 ENV['RAILS_ENV'] = nil 2 2 class Agent 3 SVN_LOOK = "/usr/local/bin/svnlook"4 3 5 4 attr_reader :builds … … 27 26 28 27 def changes 29 @changes ||= `#{SVN_LOOK } changed #{@repository}`28 @changes ||= `#{SVN_LOOK_PATH} changed #{@repository}` 30 29 end 31 30 end tools/cia/trunk/config/environment.rb
r1114 r1143 71 71 72 72 # Include your app's configuration here: 73 74 RAKE_PATH = '/usr/local/bin/rake' 75 SVN_LOOK_PATH = '/usr/local/bin/svnlook' 76 NOTIFIER_FROM_ADDRESS = 'CIA <cia@rubyonrails.com>' tools/cia/trunk/README
r1122 r1143 18 18 .read db/sqlite.sql # creates the necessary tables 19 19 20 == Adding projects 21 22 When adding a project, +repository+ is the path to your local svn repository 23 and +path+ is the path within the repository to the project you are adding. 20 24 21 25 == The post-commit hook