Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

root/trunk/Rakefile

Revision 8432, 0.5 kB (checked in by bitsweat, 1 year ago)

Toplevel test task uses the same rake it was invoked with

Line 
1 require 'rake'
2
3 env = %(PKG_BUILD="#{ENV['PKG_BUILD']}") if ENV['PKG_BUILD']
4
5 PROJECTS = %w(activesupport actionpack actionmailer activeresource activerecord railties)
6
7 Dir["#{File.dirname(__FILE__)}/*/lib/*/version.rb"].each do |version_path|
8   require version_path
9 end
10
11 desc 'Run all tests by default'
12 task :default => :test
13
14 %w(test rdoc package pgem release).each do |task_name|
15   desc "Run #{task_name} task for all projects"
16   task task_name do
17     PROJECTS.each do |project|
18       system %(cd #{project} && #{env} #{$0} #{task_name})
19     end
20   end
21 end
Note: See TracBrowser for help on using the browser.