2bdac92dcf
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8432 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
22 lines
559 B
Ruby
22 lines
559 B
Ruby
require 'rake'
|
|
|
|
env = %(PKG_BUILD="#{ENV['PKG_BUILD']}") if ENV['PKG_BUILD']
|
|
|
|
PROJECTS = %w(activesupport actionpack actionmailer activeresource activerecord railties)
|
|
|
|
Dir["#{File.dirname(__FILE__)}/*/lib/*/version.rb"].each do |version_path|
|
|
require version_path
|
|
end
|
|
|
|
desc 'Run all tests by default'
|
|
task :default => :test
|
|
|
|
%w(test rdoc package pgem release).each do |task_name|
|
|
desc "Run #{task_name} task for all projects"
|
|
task task_name do
|
|
PROJECTS.each do |project|
|
|
system %(cd #{project} && #{env} #{$0} #{task_name})
|
|
end
|
|
end
|
|
end
|