removes time offset warning for parallel builds

This commit is contained in:
rgarcia
2016-11-20 11:56:50 +01:00
parent 8595f60206
commit a0a4f3c38e

View File

@@ -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
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