language: ruby
sudo: false
cache: bundler
before_install:
  - "script/clone_all_rspec_repos"
  # Downgrade bundler to work around https://github.com/bundler/bundler/issues/3004
  # Note this doesn't work on JRUBY 2.0.0 mode so we don't do it
  - if [ -z "$JRUBY_OPTS" ]; then gem install bundler -v=1.5.3 && alias bundle="bundle _1.5.3_"; fi
bundler_args: "--binstubs --standalone --without documentation --path ../bundle"
script: "script/run_build"
rvm:
  - 1.8.7
  - 1.9.2
  - 1.9.3
  - 2.0.0
  - 2.1.0
  - 2.1.1
  - 2.1.2
  - 2.1.3
  - 2.1.4
  - 2.1.5
  - 2.2
  - ruby-head
  - ree
  - jruby-18mode
  - jruby
  - jruby-head
  - rbx
matrix:
  include:
    - rvm: jruby
      env: JRUBY_OPTS='--2.0'
  allow_failures:
    - rvm: jruby-head
    - rvm: ruby-head
    - rvm: rbx
    # These two are temporary until https://github.com/travis-ci/travis-ci/issues/3067 is solved.
    - rvm: jruby-18mode
    - rvm: jruby
  fast_finish: true

language: ruby
sudo: false
cache: bundler
before_install:
  - "script/clone_all_rspec_repos"
  # Downgrade bundler to work around https://github.com/bundler/bundler/issues/3004
  # Note this doesn't work on JRUBY 2.0.0 mode so we don't do it
  - if [ -z "$JRUBY_OPTS" ]; then gem install bundler -v=1.5.3 && alias bundle="bundle _1.5.3_"; fi
bundler_args: "--binstubs --standalone --without documentation --path ../bundle"
script: "script/run_build"
rvm:
  - 1.8.7
  - 1.9.2
  - 1.9.3
  - 2.0.0
  - 2.1
  - 2.2
  - ruby-head
  - ree
  - jruby-18mode
  - jruby
  - jruby-head
  - rbx
matrix:
  include:
    - rvm: jruby
      env: JRUBY_OPTS='--2.0'
  allow_failures:
    - rvm: jruby-head
    - rvm: ruby-head
    - rvm: rbx
    # These two are temporary until https://github.com/travis-ci/travis-ci/issues/3067 is solved.
    - rvm: jruby-18mode
    - rvm: jruby
  fast_finish: true

Trim 2.1.x entries in build matrix now that 2.2 is out.
Trim 2.1.x entries in build matrix now that 2.2 is out.