Trying to improve Travis run times.

This commit is contained in:
James Mason 2017-10-13 11:32:22 -07:00
parent 6db3647ea6
commit 33ccef59d5
2 changed files with 14 additions and 1 deletions

View file

@ -11,6 +11,13 @@ Osem::Application.configure do
config.serve_static_files = true config.serve_static_files = true
config.static_cache_control = 'public, max-age=3600' config.static_cache_control = 'public, max-age=3600'
# Use memory store for assets cache intest to avoid caching to tmp/assets,
# because it causes hiding of deprecation messages in stylesheets, and
# reduces performance.
config.assets.configure do |env|
env.cache = ActiveSupport::Cache.lookup_store(:memory_store)
end
# Do not eager load code on boot. # Do not eager load code on boot.
config.eager_load = false config.eager_load = false

View file

@ -59,7 +59,13 @@ RSpec.configure do |config|
Capybara.javascript_driver = :poltergeist Capybara.javascript_driver = :poltergeist
Capybara.register_driver :poltergeist do |app| Capybara.register_driver :poltergeist do |app|
Capybara::Poltergeist::Driver.new(app, phantomjs: Phantomjs.path, js_errors: false, window_size: [1920, 1080]) Capybara::Poltergeist::Driver.new(
app,
phantomjs: Phantomjs.path,
js_errors: false,
window_size: [1920, 1080],
url_whitelist: ['http://www.example.com']
)
end end
# Includes helpers and connect them to specific types of tests # Includes helpers and connect them to specific types of tests