# Available ruby versions: http://rubies.travis-ci.org/

language: ruby
os:
  - linux
  - osx
rvm:
  - "2.0.0"
  - "2.1" # latest 2.1.x
  - "2.2" # latest 2.2.x
  - "2.3.1" # TODO: switch to "2.3" once travis fixes it
  - "ruby-head"
  - "jruby-9.0.5.0"
  - "jruby-head"
script:
  bundle exec rake test
branches:
  except:
    - "readme-edits"

# Travis OS X support is pretty janky. These are some hacks to include tests
# only on versions that actually work.
# (last tested: 2016-04)
matrix:
  exclude:
    - os: osx
      rvm: '2.2'
    - os: osx
      rvm: '2.3.1' # No 2.3.x at all
  include:
    - os: osx
      rvm: '2.2.2' # Travis OS X doesn't have 2.2 aliases
  allow_failures:
    - rvm: 'ruby-head'
    - os: osx
      rvm: 'jruby-9.0.5.0'
    - os: osx
      rvm: 'jruby-head'
    - os: linux
      rvm: 'jruby-head'
  fast_finish: true

sudo: false

# Available ruby versions: http://rubies.travis-ci.org/

language: ruby
os:
  - linux
  - osx
rvm:
  - "2.0.0"
  - "2.1" # latest 2.1.x
  - "2.2" # latest 2.2.x
  - "2.3.1" # TODO: switch to "2.3" once travis fixes it
  - "ruby-head"
  - "jruby-9.0.5.0"
  - "jruby-head"
script:
  bundle exec rake test
branches:
  except:
    - "readme-edits"
before_install:
  # bundler installation needed for jruby-head
  # https://github.com/travis-ci/travis-ci/issues/5861
  - gem install bundler

# Travis OS X support is pretty janky. These are some hacks to include tests
# only on versions that actually work.
# (last tested: 2016-04)
matrix:
  exclude:
    - os: osx
      rvm: '2.2'
    - os: osx
      rvm: '2.3.1' # No 2.3.x at all
  include:
    - os: osx
      rvm: '2.2.2' # Travis OS X doesn't have 2.2 aliases
  allow_failures:
    - rvm: 'ruby-head'
    - os: osx
      rvm: 'jruby-9.0.5.0'
    - os: osx
      rvm: 'jruby-head'
    - os: linux
      rvm: 'jruby-head'
  fast_finish: true

sudo: false

Install bundler in case it's not found.
Install bundler in case it's not found.

https://github.com/travis-ci/travis-ci/issues/5861
