Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…le at a time
  • Loading branch information...
commit 3e74aac8c43bde061cb733cada945ed2e1550f7a 1 parent d41d64b
@mjankowski mjankowski authored
Showing with 8 additions and 4 deletions.
  1. +8 −4 Rakefile
View
12 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
+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
Please sign in to comment.
Something went wrong with that request. Please try again.