From fbe52bca85b66ad89040ecd1519dc9021ab5a532 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Sun, 1 Mar 2015 00:36:20 -0800 Subject: [PATCH] Move simplecov_custom_profile to test/ & gate with TRAVIS env --- test/helper.rb | 10 ++++++---- {lib => test}/simplecov_custom_profile.rb | 0 2 files changed, 6 insertions(+), 4 deletions(-) rename {lib => test}/simplecov_custom_profile.rb (100%) diff --git a/test/helper.rb b/test/helper.rb index 4efa1f96..dd6b38da 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -1,7 +1,9 @@ -require 'simplecov_custom_profile' -SimpleCov.start('gem') do - add_filter "/vendor/bundle" - add_filter "/vendor/gem" +unless ENV['TRAVIS'] + require File.expand_path('../simplecov_custom_profile', __FILE__) + SimpleCov.start('gem') do + add_filter "/vendor/bundle" + add_filter "/vendor/gem" + end end require 'rubygems' diff --git a/lib/simplecov_custom_profile.rb b/test/simplecov_custom_profile.rb similarity index 100% rename from lib/simplecov_custom_profile.rb rename to test/simplecov_custom_profile.rb