language: ruby
sudo: required
dist: trusty
addons:
chrome: stable
cache:
bundler: true
before_install:
- gem update bundler
- gem install bundler
- google-chrome-stable --headless --disable-gpu --no-sandbox --remote-debugging-port=9222 http://localhost &
rvm:
- 2.5.5
- 2.6.3
env:
global:
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true
# Travis should check every minor version in a range of supported versions, because
# rails does not follow sem-ver conventions, see http://guides.rubyonrails.org/maintenance_policy.html
# It should be sufficient to test only the latest of the patch versions for a minor version, they
# should be compatible across patch versions (only bug fixes are released in patch versions).
matrix:
- "RAILS_VERSION=5.2.4"
services:
- redis-server
before_script:
- jdk_switcher use oraclejdk8