language: ruby
rvm:
  - 2.2.2
  - 2.3.0
  - ruby-head
branches:
  only:
    - "master"
    - "/^release-/"
matrix:
  fast_finish: true
  allow_failures:
    - rvm: ruby-head
before_install: gem install bundler
cache: bundler
sudo: false
git:
  depth: 1

language: ruby
rvm:
  - 2.2.5
  - 2.3.1
  - ruby-head
branches:
  only:
    - "master"
    - "/^release-/"
matrix:
  fast_finish: true
  allow_failures:
    - rvm: ruby-head
before_install: gem install bundler
cache: bundler
sudo: false
git:
  depth: 1

Use recent Rubies in Travis CI
Use recent Rubies in Travis CI
