language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- 2.1.0
- jruby
- ruby-head
os:
- linux
- osx
matrix:
  exclude:
    - rvm: 1.8.7
      os: osx
    - rvm: 1.9.2
      os: osx
    - rvm: 2.1.0
      os: osx
    - rvm: jruby
      os: osx
deploy:
  provider: rubygems
  api_key:
    secure: KcBpkFaes74KGMm8X/rRA8e13+t3PmkefsAvOAR+iF4g1GyuLSPkP92Fb9vFfsXBph+qmFh5rNa2lIRf/3RXW6COxY7CMMaARxUfJOKE0rmIwF0qfKI+RZDh6abg92iYngunMZVN8WVft6Lv9ZTOYCWxr1Zs1Ll/Rl4PfvHNd1g=
  gem: travis
  on:
    repo: travis-ci/travis.rb
    ruby: 2.0.0
    condition: "$(uname) = Darwin"

language: ruby
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- 2.0.0
- 2.1.0
- jruby
- ruby-head
os:
- linux
- osx

before_script:
  - if [[ $TRAVIS_RUBY_VERSION = '2.0.0' && $(uname) = 'Darwin' ]]; then rvm install ruby-1.9.3-p545 && rvm use $TRAVIS_RUBY_VERSION --fuzzy; fi

matrix:
  exclude:
    - rvm: 1.8.7
      os: osx
    - rvm: 1.9.2
      os: osx
    - rvm: 2.1.0
      os: osx
    - rvm: jruby
      os: osx
deploy:
  provider: rubygems
  api_key:
    secure: KcBpkFaes74KGMm8X/rRA8e13+t3PmkefsAvOAR+iF4g1GyuLSPkP92Fb9vFfsXBph+qmFh5rNa2lIRf/3RXW6COxY7CMMaARxUfJOKE0rmIwF0qfKI+RZDh6abg92iYngunMZVN8WVft6Lv9ZTOYCWxr1Zs1Ll/Rl4PfvHNd1g=
  gem: travis
  on:
    repo: travis-ci/travis.rb
    ruby: 2.0.0
    condition: "$(uname) = Darwin"

Install Ruby 1.9.3-p545 under certain circumstances
Install Ruby 1.9.3-p545 under certain circumstances

To deploy, we need 1.9.3-p545 on the Mac image when running with
Ruby 2.0.0. See https://github.com/travis-ci/travis-ci/issues/2202
for details.
