Don't precompile all themes for tests

And sprockets 3 also caches files in tmp/cache/assets/sprockets
This commit is contained in:
Benjamin Neff 2017-07-30 05:43:18 +02:00
parent 7a26456875
commit a797f2d27b
No known key found for this signature in database
GPG key ID: 971464C3F1A90194
2 changed files with 9 additions and 1 deletions

View file

@ -15,7 +15,7 @@ cache:
bundler: true
directories:
- app/assets/images
- tmp/cache/assets/test
- tmp/cache/assets
branches:
only:

View file

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