From fca4e535c86e04857c0fc6047f8234721ba5ca8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Fri, 14 Oct 2016 15:56:24 +0200 Subject: [PATCH] Use eager loading on Travis --- config/environments/test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/environments/test.rb b/config/environments/test.rb index 4d4a67f82b..24c400bcbc 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -40,7 +40,8 @@ OpenProject::Application.configure do config.cache_classes = true # Use eager load to mirror the production environment - config.eager_load = true + # on travis + config.eager_load = ENV.fetch('CI', false) # This setting is false by default, but we define it explicitly config.allow_concurrency = false