script: "bundle exec rake ci"
rvm:
  - ruby-head
  - 2.1.1
  - 2.0.0
  - 1.9.3
  - 1.8.7
  - jruby-head
  - jruby-19mode
  - rbx-19mode
env:
  - RSPEC_VERSION=master
  - RSPEC_VERSION='~> 3.0.0'
  - RSPEC_VERSION='~> 2.99.0'
  - RSPEC_VERSION='~> 2.14.0'
matrix:
  allow_failures:
    - rvm: ruby-head
    - rvm: jruby-head
    - rvm: jruby-19mode
    - rvm: rbx-19mode

language: ruby

rvm:
  - 1.8.7
  - 2.1.2
  - 2.0.0
  - 1.9.3
  - ruby-head
  - jruby-head
  - jruby-19mode
  - rbx-19mode

env:
  - RSPEC_VERSION=master
  - RSPEC_VERSION='~> 3.0.0'
  - RSPEC_VERSION='~> 2.99.0'
  - RSPEC_VERSION='~> 2.14.0'

bundler_args: "--retry=3 --jobs=3"

script: "bundle exec rake ci --trace"

matrix:
  allow_failures:
    - rvm: ruby-head
    - rvm: jruby-head
    - rvm: jruby-19mode
    - rvm: rbx-19mode

Speed up bundle install on Travis.
Speed up bundle install on Travis.

Update the travis config per travis doc structure. Move `ruby-head` to
later in the build so that the more important versions run first. Speed
up the bundle install and improve gem install failures.
