---
git:
  submodules: false
bundler_args: --with postgres aws --without development debug
services:
  - mysql2
  - redis-server
before_install:
  - sudo rm -vf /etc/apt/sources.list.d/*riak*
  - sudo rm -vf /etc/apt/sources.list.d/*hhvm*
  - sudo apt-get update
  - sudo apt-get install mediainfo
  - sudo ln -s /usr/bin/lsof /usr/sbin/lsof
  - cp config/controlled_vocabulary.yml.example config/controlled_vocabulary.yml
  - bundle config without development:production
before_script:
  - rm config/database.yml
  - cp config/database.travis.yml config/database.yml
  - psql -c 'create database travis_ci_test;' -U postgres
  - bundle exec rake db:migrate
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
  - ./cc-test-reporter before-build
script:
  - bundle exec rake
after_script:
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
language: ruby
jdk:
  - oraclejdk8
rvm:
  - 2.3
  - 2.4
  - 2.5
dist: trusty
sudo: required

---
git:
  submodules: false
bundler_args: --with postgres aws --without development debug
services:
  - mysql2
  - redis-server
before_install:
  - sudo rm -vf /etc/apt/sources.list.d/*riak*
  - sudo rm -vf /etc/apt/sources.list.d/*hhvm*
  - sudo apt-get update
  - sudo apt-get install mediainfo
  - sudo ln -s /usr/bin/lsof /usr/sbin/lsof
  - cp config/controlled_vocabulary.yml.example config/controlled_vocabulary.yml
  - bundle config without development:production
before_script:
  - rm config/database.yml
  - cp config/database.travis.yml config/database.yml
  - psql -c 'create database travis_ci_test;' -U postgres
  - bundle exec rake db:migrate
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  - chmod +x ./cc-test-reporter
  - ./cc-test-reporter before-build
script:
  - bundle exec rake
after_script:
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
language: ruby
jdk:
  - oraclejdk8
rvm:
  - 2.4
  - 2.5
  - 2.6
dist: trusty
sudo: required

Test with ruby 2.6 and drop 2.3
Test with ruby 2.6 and drop 2.3

Ruby 2.6 was released on 12/25/2018 and Ruby 2.3 is EOL on 3/31/2019.