language: ruby

dist: trusty

sudo: false

cache: bundler

compiler: clang

rvm:
  - 2.3.8
  - 2.4.5
  - 2.5.3
  - 2.6.0

# Build only commits on master for the "Build pushed branches" feature. This
# prevents building twice on PRs originating from our repo ("Build pushed pull
# requests)". See:
#   - https://github.com/travis-ci/travis-ci/issues/1147
#   - https://docs.travis-ci.com/user/pull-requests/#double-builds-on-pull-requests
branches:
  only:
    - master

gemfile:
  - gemfiles/rails_4.2.gemfile
  - gemfiles/rails_5.0.gemfile
  - gemfiles/rails_5.1.gemfile
  - gemfiles/rails_5.2.gemfile
  - gemfiles/rails_edge.gemfile

services:
  - redis-server

before_script: psql -c 'create database rpush_test;' -U postgres >/dev/null
before_install:
  - gem update --system
  - gem update bundler

env:
  matrix:
    - CLIENT=active_record
    - CLIENT=redis

matrix:
  fast_finish: true
  allow_failures:
    - rvm: 2.6.0
    - gemfile: gemfiles/rails_edge.gemfile
    - gemfile: gemfiles/rails_5.2.gemfile
      env: CLIENT=redis

language: ruby

dist: trusty

sudo: false

cache: bundler

compiler: clang

rvm:
  - 2.3.8
  - 2.4.5
  - 2.5.3
  - 2.6.0

# Build only commits on master for the "Build pushed branches" feature. This
# prevents building twice on PRs originating from our repo ("Build pushed pull
# requests)". See:
#   - https://github.com/travis-ci/travis-ci/issues/1147
#   - https://docs.travis-ci.com/user/pull-requests/#double-builds-on-pull-requests
branches:
  only:
    - master

gemfile:
  - gemfiles/rails_4.2.gemfile
  - gemfiles/rails_5.0.gemfile
  - gemfiles/rails_5.1.gemfile
  - gemfiles/rails_5.2.gemfile
  - gemfiles/rails_edge.gemfile

services:
  - redis-server

before_script: psql -c 'create database rpush_test;' -U postgres >/dev/null
before_install:
  # Rails 4.2 doesn't support bundler 2.0 which comes with rubygems 3.0
  - gem install rubygems-update -v '<3' && update_rubygems
  - gem install bundler

env:
  matrix:
    - CLIENT=active_record
    - CLIENT=redis

matrix:
  fast_finish: true
  allow_failures:
    - rvm: 2.6.0
    - gemfile: gemfiles/rails_edge.gemfile
    - gemfile: gemfiles/rails_5.2.gemfile
      env: CLIENT=redis

Use bundler <3 on CI
Use bundler <3 on CI
