Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 3e74aac
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Rakefile
Expand Up @@ -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
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'
end

Expand Down

0 comments on commit 3e74aac

Please sign in to comment.