2007-10-14 20:10:39 -04:00
|
|
|
require 'rake'
|
|
|
|
|
|
|
|
env = %(PKG_BUILD="#{ENV['PKG_BUILD']}") if ENV['PKG_BUILD']
|
|
|
|
|
2007-10-14 20:11:50 -04:00
|
|
|
PROJECTS = %w(activesupport actionpack actionmailer activeresource activerecord railties)
|
2007-10-14 20:10:39 -04:00
|
|
|
|
|
|
|
Dir["#{File.dirname(__FILE__)}/*/lib/*/version.rb"].each do |version_path|
|
|
|
|
require version_path
|
|
|
|
end
|
|
|
|
|
|
|
|
desc 'Run all tests by default'
|
|
|
|
task :default => :test
|
|
|
|
|
2007-12-16 19:16:15 -05:00
|
|
|
%w(test rdoc package pgem release).each do |task_name|
|
2007-10-14 20:10:39 -04:00
|
|
|
desc "Run #{task_name} task for all projects"
|
|
|
|
task task_name do
|
|
|
|
PROJECTS.each do |project|
|
2007-12-18 16:12:45 -05:00
|
|
|
system %(cd #{project} && #{env} #{$0} #{task_name})
|
2007-10-14 20:10:39 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|