Browse files

run all appraisals by default, but allow travis to only run one gemfi…

…le at a time
  • Loading branch information...
mjankowski committed Apr 4, 2012
1 parent d41d64b commit 3e74aac8c43bde061cb733cada945ed2e1550f7a
Showing with 8 additions and 4 deletions.
  1. +8 −4 Rakefile
@@ -9,11 +9,15 @@ require 'diesel/tasks'
require 'rspec/core/rake_task'
require 'appraisal'
-desc 'Default: run the specs and cucumber features'
-task :default => [:all]
+task :default do |t|
+ if ENV['BUNDLE_GEMFILE'] =~ /gemfiles/
+ exec 'rake spec cucumber'
+ else
+ Rake::Task['appraise'].execute
+ end
-desc 'Test the plugin under all supported Rails versions.'
-task :all => ['appraisal:install'] do |t|
+task :appraise => ['appraisal:install'] do |t|
exec 'rake appraisal spec cucumber'

0 comments on commit 3e74aac

Please sign in to comment.