cache: bundler

language:
  - ruby

rvm:
  - 1.9.3
  - 2.0.0
  - 2.1.8
  - 2.2.4
  - 2.3.0

gemfile:
  - gemfiles/rails32.gemfile
  - gemfiles/rails40.gemfile
  - gemfiles/rails41.gemfile
  - gemfiles/rails42.gemfile
  - gemfiles/rails50.gemfile

matrix:
  exclude:
    - rvm: 1.9.3
      gemfile: gemfiles/rails50.gemfile
    - rvm: 2.0.0
      gemfile: gemfiles/rails50.gemfile
    - rvm: 2.1.8
      gemfile: gemfiles/rails50.gemfile
    - rvm: 2.2.4
      gemfile: gemfiles/rails32.gemfile
    - rvm: 2.3.0
      gemfile: gemfiles/rails32.gemfile

install:
  - "bin/setup"

branches:
  only:
    - master
    - 2.0

sudo: false

cache: bundler

language:
  - ruby

rvm:
  - 1.9.3
  - 2.0.0
  - 2.1.8
  - 2.2.4
  - 2.3.0

gemfile:
  - gemfiles/rails32.gemfile
  - gemfiles/rails40.gemfile
  - gemfiles/rails41.gemfile
  - gemfiles/rails42.gemfile
  - gemfiles/rails50.gemfile

matrix:
  exclude:
    - rvm: 1.9.3
      gemfile: gemfiles/rails50.gemfile
    - rvm: 2.0.0
      gemfile: gemfiles/rails50.gemfile
    - rvm: 2.1.8
      gemfile: gemfiles/rails50.gemfile
    - rvm: 2.2.4
      gemfile: gemfiles/rails32.gemfile
    - rvm: 2.3.0
      gemfile: gemfiles/rails32.gemfile

before_install:
  - gem update --system
  - gem update bundler

install:
  - "bin/setup"

branches:
  only:
    - master
    - 2.0

sudo: false

Fix build issues on 1.9.3
Fix build issues on 1.9.3

I'm not entirely certain what the underlying issue is here, but we've
started getting the following error when setting up the project on CI
under 1.9.3 Some cursory googling shows that updating rubygems and/or
bunder should fix this.

```
NoMethodError: undefined method `spec' for nil:NilClass
An error occurred while installing clearance (1.16.0), and Bundler cannot
continue.
Make sure that `gem install clearance -v '1.16.0'` succeeds before bundling.
```
