Skip to content

Commit

Permalink
Merge f0ff46f into e193fbf
Browse files Browse the repository at this point in the history
  • Loading branch information
camillevilla committed Nov 8, 2019
2 parents e193fbf + f0ff46f commit 36d669c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 19 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dist: trusty
dist: bionic
addons:
chrome: stable
language: ruby
Expand All @@ -8,11 +8,11 @@ notifications:
email: false

rvm:
- 2.5.0
- 2.5.7

matrix:
include:
- rvm: 2.5.0
- rvm: 2.5.7
env: "RAILS_VERSION=5.2.0"
- rvm: 2.4.4
env: "RAILS_VERSION=4.2.10"
Expand Down Expand Up @@ -50,4 +50,4 @@ global_env:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
- ENGINE_CART_RAILS_OPTIONS='--skip-git --skip-bundle --skip-listen --skip-spring --skip-yarn --skip-keeps --skip-action-cable --skip-coffee --skip-test'

jdk: oraclejdk8
jdk: openjdk11
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ else
end

case ENV['RAILS_VERSION']
when /^5.[12]/
gem 'sass-rails', '~> 5.0'
when /^4.2/
gem 'responders', '~> 2.0'
gem 'sass-rails', '>= 5.0'
Expand Down
2 changes: 1 addition & 1 deletion blacklight.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Gem::Specification.new do |s|
s.add_development_dependency "rspec-its"
s.add_development_dependency "rspec-collection_matchers", ">= 1.0"
s.add_development_dependency "capybara", '>= 2', '< 4'
s.add_development_dependency 'chromedriver-helper', '< 2.0.0' # 2.1.0 is causing "Unable to find chromedriver" on Travis
s.add_development_dependency 'webdrivers', '~> 3.0'
s.add_development_dependency "selenium-webdriver", '>= 3.13.1'
s.add_development_dependency 'engine_cart', '~> 2.1'
s.add_development_dependency "equivalent-xml"
Expand Down
2 changes: 0 additions & 2 deletions solr/conf/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,6 @@
<analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/>
<filter class="solr.StandardFilterFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
</analyzer>
Expand All @@ -317,7 +316,6 @@
<fieldType class="solr.TextField" name="textSuggest" positionIncrementGap="100">
<analyzer>
<tokenizer class="solr.KeywordTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/>
<filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
</analyzer>
Expand Down
14 changes: 2 additions & 12 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,10 @@
require 'rspec/its'
require 'rspec/collection_matchers'
require 'capybara/rspec'
require 'selenium-webdriver'
require 'webdrivers'
require 'equivalent-xml'

Capybara.javascript_driver = :headless_chrome

Capybara.register_driver :headless_chrome do |app|
capabilities = Selenium::WebDriver::Remote::Capabilities.chrome(
chromeOptions: { args: %w[headless disable-gpu] }
)

Capybara::Selenium::Driver.new(app,
browser: :chrome,
desired_capabilities: capabilities)
end
Capybara.javascript_driver = :selenium_chrome_headless

# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Expand Down

0 comments on commit 36d669c

Please sign in to comment.