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

root/branches/2-1-caching/Rakefile

Revision 7892, 0.5 kB (checked in by bitsweat, 9 months ago)

Forgot railties

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 docs 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} rake #{task_name})
19     end
20   end
21 end
Note: See TracBrowser for help on using the browser.