Skip to content

Commit

Permalink
Enable coverage & quality test only with default Gemfile
Browse files Browse the repository at this point in the history
Speeds up CI build for non-standard Gemfiles
  • Loading branch information
mislav committed Apr 16, 2014
1 parent 1c7e12e commit ecd4327
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
ruby_19 = RUBY_VERSION > '1.9'
ruby_mri = !defined?(RUBY_ENGINE) || 'ruby' == RUBY_ENGINE
default_gemfile = ENV['BUNDLE_GEMFILE'] =~ /Gemfile$/

if ruby_19 && ruby_mri
if ruby_19 && ruby_mri && default_gemfile
task :default => [:enable_coverage, :spec, :quality]
else
task :default => [:spec]
Expand Down

0 comments on commit ecd4327

Please sign in to comment.