Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-20 15:09:02 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-20 15:09:02 +0300
commit98252e0dd60cbcb316231085e206d9872f243b8a (patch)
tree304021f4190aabcc74f1359866c0efff84995729 /config
parent2ee5991b42717969af93cb30d863aafab04dff8a (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'config')
-rw-r--r--config/environments/test.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/config/environments/test.rb b/config/environments/test.rb
index 153d16e4e55..d8235c6220c 100644
--- a/config/environments/test.rb
+++ b/config/environments/test.rb
@@ -10,11 +10,8 @@ Rails.application.configure do
# your test database is "scratch space" for the test suite and is wiped
# and recreated between test runs. Don't rely on the data there!
- # Enabling caching of classes slows start-up time because all controllers
- # are loaded at initialization, but it reduces memory and load because files
- # are not reloaded with every request. For example, caching is not necessary
- # for loading database migrations but useful for handling Knapsack specs.
- config.cache_classes = ENV['CACHE_CLASSES'] == 'true'
+ # Code doesn't change in CI so we don't need code-reloading
+ config.cache_classes = !!ENV['CI']
# Configure static asset server for tests with Cache-Control for performance
config.assets.compile = false if ENV['CI']