mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Create an install task that successfully installs all Rails gems
This commit is contained in:
parent
bb91beabbd
commit
f3ed0de340
1 changed files with 8 additions and 2 deletions
10
Rakefile
10
Rakefile
|
@ -3,7 +3,7 @@ require 'rake/rdoctask'
|
||||||
|
|
||||||
env = %(PKG_BUILD="#{ENV['PKG_BUILD']}") if ENV['PKG_BUILD']
|
env = %(PKG_BUILD="#{ENV['PKG_BUILD']}") if ENV['PKG_BUILD']
|
||||||
|
|
||||||
PROJECTS = %w(activesupport actionpack actionmailer activemodel activeresource activerecord railties)
|
PROJECTS = %w(activesupport actionpack actionmailer activeresource activerecord railties)
|
||||||
|
|
||||||
Dir["#{File.dirname(__FILE__)}/*/lib/*/version.rb"].each do |version_path|
|
Dir["#{File.dirname(__FILE__)}/*/lib/*/version.rb"].each do |version_path|
|
||||||
require version_path
|
require version_path
|
||||||
|
@ -12,7 +12,7 @@ end
|
||||||
desc 'Run all tests by default'
|
desc 'Run all tests by default'
|
||||||
task :default => :test
|
task :default => :test
|
||||||
|
|
||||||
%w(test isolated_test rdoc pgem package release).each do |task_name|
|
%w(test isolated_test rdoc pgem package release gem).each do |task_name|
|
||||||
desc "Run #{task_name} task for all projects"
|
desc "Run #{task_name} task for all projects"
|
||||||
task task_name do
|
task task_name do
|
||||||
errors = []
|
errors = []
|
||||||
|
@ -23,6 +23,12 @@ task :default => :test
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
task :install => :gem do
|
||||||
|
(PROJECTS - ["railties"]).each do |project|
|
||||||
|
system("gem install #{project}/pkg/#{project}-#{ActionPack::VERSION::STRING}.gem --no-ri --no-rdoc")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
desc "Generate documentation for the Rails framework"
|
desc "Generate documentation for the Rails framework"
|
||||||
Rake::RDocTask.new do |rdoc|
|
Rake::RDocTask.new do |rdoc|
|
||||||
|
|
Loading…
Reference in a new issue