Permalink
Browse files

rake smoke: toplevel task to quickly smoke-test all projects

  • Loading branch information...
1 parent 1ebfd99 commit a76af2309ac362ae1f38d24fd4746139deca3417 @jeremy jeremy committed Dec 28, 2009
Showing with 8 additions and 1 deletion.
  1. +8 −1 Rakefile
View
@@ -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

0 comments on commit a76af23

Please sign in to comment.