Don't precompile all themes for tests
And sprockets 3 also caches files in tmp/cache/assets/sprockets
This commit is contained in:
parent
7a26456875
commit
a797f2d27b
2 changed files with 9 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ cache:
|
||||||
bundler: true
|
bundler: true
|
||||||
directories:
|
directories:
|
||||||
- app/assets/images
|
- app/assets/images
|
||||||
- tmp/cache/assets/test
|
- tmp/cache/assets
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,14 @@ Diaspora::Application.configure do
|
||||||
# Precompile poltergeist_disable_transition.css for tests
|
# Precompile poltergeist_disable_transition.css for tests
|
||||||
config.assets.precompile += %w[poltergeist_disable_transition.css]
|
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
|
# Show full error reports and disable caching
|
||||||
config.consider_all_requests_local = true
|
config.consider_all_requests_local = true
|
||||||
config.action_controller.perform_caching = false
|
config.action_controller.perform_caching = false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue