From a797f2d27b4827e1529ca80b2681b0d16ac7aa5a Mon Sep 17 00:00:00 2001 From: Benjamin Neff <benjamin@coding4coffee.ch> Date: Sun, 30 Jul 2017 05:43:18 +0200 Subject: [PATCH] Don't precompile all themes for tests And sprockets 3 also caches files in tmp/cache/assets/sprockets --- .travis.yml | 2 +- config/environments/test.rb | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index da4e27666e..e4b3101718 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,7 @@ cache: bundler: true directories: - app/assets/images - - tmp/cache/assets/test + - tmp/cache/assets branches: only: diff --git a/config/environments/test.rb b/config/environments/test.rb index ad06a51ac9..7df9c1b93c 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -22,6 +22,14 @@ Diaspora::Application.configure do # Precompile poltergeist_disable_transition.css for tests config.assets.precompile += %w[poltergeist_disable_transition.css] + # Don't precompile all themes for tests + config.assets.precompile -= %w[color_themes/*/desktop.css color_themes/*/mobile.css] + config.assets.precompile += %w[ + color_themes/original/desktop.css + color_themes/dark_green/desktop.css + color_themes/original/mobile.css + ] + # Show full error reports and disable caching config.consider_all_requests_local = true config.action_controller.perform_caching = false -- GitLab