Skip to content

Commit

Permalink
Add toplevel Rakefile to run tests, generate docs, etc en masse
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7890 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
jeremy committed Oct 15, 2007
1 parent bfe85ae commit 8922c5d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
require 'rake'

env = %(PKG_BUILD="#{ENV['PKG_BUILD']}") if ENV['PKG_BUILD']

PROJECTS = %w(actionmailer actionpack activerecord activeresource activesupport)

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 docs 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} rake #{task_name})
end
end
end

0 comments on commit 8922c5d

Please sign in to comment.