sudo: false
language: ruby
rvm: 2.5.1
services:
  - redis-server
before_install:
  - ./test/ci/before_install.sh
script: bundle exec rake test
before_script:
  - psql -c 'create database searchkick_test;' -U postgres
notifications:
  email:
    on_success: never
    on_failure: change
env:
  - ELASTICSEARCH_VERSION=6.4.1
jdk: oraclejdk8
matrix:
  include:
    - gemfile: Gemfile
    - gemfile: test/gemfiles/activerecord51.gemfile
      env: ELASTICSEARCH_VERSION=6.0.0
    - gemfile: test/gemfiles/activerecord50.gemfile
      env: ELASTICSEARCH_VERSION=5.6.10
    - gemfile: test/gemfiles/activerecord42.gemfile
      env: ELASTICSEARCH_VERSION=5.0.1
    - gemfile: test/gemfiles/mongoid6.gemfile
      services:
      - mongodb
      - redis-server
    - gemfile: test/gemfiles/mongoid5.gemfile
      services:
      - mongodb
      - redis-server

sudo: false
language: ruby
rvm: 2.5.1
services:
  - redis-server
before_install:
  - ./test/ci/before_install.sh
script: bundle exec rake test
before_script:
  - psql -c 'create database searchkick_test;' -U postgres
notifications:
  email:
    on_success: never
    on_failure: change
env:
  - ELASTICSEARCH_VERSION=6.5.0
jdk: oraclejdk8
matrix:
  include:
    - gemfile: Gemfile
    - gemfile: test/gemfiles/activerecord51.gemfile
      env: ELASTICSEARCH_VERSION=6.0.0
    - gemfile: test/gemfiles/activerecord50.gemfile
      env: ELASTICSEARCH_VERSION=5.6.10
    - gemfile: test/gemfiles/activerecord42.gemfile
      env: ELASTICSEARCH_VERSION=5.0.1
    - gemfile: test/gemfiles/mongoid6.gemfile
      services:
      - mongodb
      - redis-server
    - gemfile: test/gemfiles/mongoid5.gemfile
      services:
      - mongodb
      - redis-server

Test against ES 6.5.0 on Travis
Test against ES 6.5.0 on Travis
