Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 22 lines (16 sloc) 0.559 kb
8922c5d @jeremy Add toplevel Rakefile to run tests, generate docs, etc en masse
jeremy authored
1 require 'rake'
2
3 env = %(PKG_BUILD="#{ENV['PKG_BUILD']}") if ENV['PKG_BUILD']
4
03d2b6c @jeremy Forgot railties
jeremy authored
5 PROJECTS = %w(activesupport actionpack actionmailer activeresource activerecord railties)
8922c5d @jeremy Add toplevel Rakefile to run tests, generate docs, etc en masse
jeremy authored
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
dcc1549 @dhh Fix rdoc task name (closes #10392) [murphy]
dhh authored
14 %w(test rdoc package pgem release).each do |task_name|
8922c5d @jeremy Add toplevel Rakefile to run tests, generate docs, etc en masse
jeremy authored
15 desc "Run #{task_name} task for all projects"
16 task task_name do
17 PROJECTS.each do |project|
2bdac92 @jeremy Toplevel test task uses the same rake it was invoked with
jeremy authored
18 system %(cd #{project} && #{env} #{$0} #{task_name})
8922c5d @jeremy Add toplevel Rakefile to run tests, generate docs, etc en masse
jeremy authored
19 end
20 end
21 end
Something went wrong with that request. Please try again.