language: ruby
cache: bundler

os:
  - linux
  - osx

rvm:
  - 1.9.3
  - 2.0.0
  - 2.1.7
  - 2.2.3
  - ruby-head
  - rbx-2

addons:
  apt:
    packages:
    - cmake
    - libssh2-1-dev
    - openssh-client
    - openssh-server

sudo: false

matrix:
  fast_finish: true
  allow_failures:
    - rvm: rbx-2
    - rvm: ruby-head

before_install:
  - if [ "$TRAVIS_OS_NAME" = "osx" ]; then ./vendor/libgit2/script/install-deps-osx.sh; fi

script: script/travisbuild

language: ruby
cache: bundler

os:
  - linux

rvm:
  - 2.0.0
  - 2.1.8
  - 2.2.4
  - 2.3.0
  - ruby-head
  - rbx-2

addons:
  apt:
    packages:
    - cmake
    - libssh2-1-dev
    - openssh-client
    - openssh-server

sudo: false

matrix:
  fast_finish: true
  allow_failures:
    - rvm: rbx-2
    - rvm: ruby-head
  include:
    - os: osx
      rvm: 2.0.0
    - os: osx
      rvm: 2.1.5
    - os: osx
      rvm: 2.2.2
    - os: osx
      rvm: rbx-2

before_install:
  - if [ "$TRAVIS_OS_NAME" = "osx" ]; then ./vendor/libgit2/script/install-deps-osx.sh; fi

script: script/travisbuild

Update the list of ruby versions to build on Travis
Update the list of ruby versions to build on Travis

This adds the latest 2.3.0 release to the Travis config, updates to the latest 2.1.x and 2.2.x versions and drops the builds against 1.9.3 (which has been unsupported for quite a while).

Also change the way we specify builds for OS X and only run builds for supported versions.
