Skip to content

Commit

Permalink
rake smoke: toplevel task to quickly smoke-test all projects
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed Dec 28, 2009
1 parent 1ebfd99 commit a76af23
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Rakefile
Expand Up @@ -24,8 +24,15 @@ task :default => %w(test test:isolated)
end
end

spec = eval(File.read('rails.gemspec'))
desc "Smoke-test all projects"
task :smoke do
(PROJECTS - %w(activerecord)).each do |project|
system %(cd #{project} && #{env} #{$0} test:isolated)
end
system %(cd activerecord && #{env} #{$0} sqlite3:isolated_test)
end

spec = eval(File.read('rails.gemspec'))
Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
end
Expand Down

0 comments on commit a76af23

Please sign in to comment.