From a0a4f3c38ea7cf137174b1598f3e5c70b26305b3 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Sun, 20 Nov 2016 11:56:50 +0100 Subject: [PATCH] removes time offset warning for parallel builds --- spec/spec_helper.rb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 5b783ff8c..e309192fd 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -4,7 +4,6 @@ require 'email_spec' require 'devise' require 'knapsack' Dir["./spec/support/**/*.rb"].sort.each { |f| require f } -Knapsack::Adapters::RSpecAdapter.bind RSpec.configure do |config| config.use_transactional_fixtures = false @@ -103,4 +102,12 @@ RSpec.configure do |config| # test failures related to randomization by passing the same `--seed` value # as the one that triggered the failure. Kernel.srand config.seed -end \ No newline at end of file +end + +# Parallel build helper configuration for travis +Knapsack.tracker.config({ + enable_time_offset_warning: true, # Enable warning when real build time exceeds expected build time + time_offset_in_seconds: 300 # Time offset between expected build time and real build time +}) + +Knapsack::Adapters::RSpecAdapter.bind \ No newline at end of file