language: ruby
cache: bundler

os:
  - linux

rvm:
  - jruby
  - "2.3"
  - "2.4"
  - "2.5"
  - "2.6"
  - "2.7"

jobs:
  include:
    - os: osx
      rvm: "2.5"
    - os: osx
      rvm: "2.6"
    - stage: deploy
      if: repo = travis-ci/travis.rb and branch = master and type = push
      os: linux
      rvm: "2.6"
      deploy:
        provider: rubygems
        api_key:
          secure: KcBpkFaes74KGMm8X/rRA8e13+t3PmkefsAvOAR+iF4g1GyuLSPkP92Fb9vFfsXBph+qmFh5rNa2lIRf/3RXW6COxY7CMMaARxUfJOKE0rmIwF0qfKI+RZDh6abg92iYngunMZVN8WVft6Lv9ZTOYCWxr1Zs1Ll/Rl4PfvHNd1g=
        gem: travis
        edge: true

script:
  - bundle exec rake
  - gem build travis.gemspec
  - gem install travis-*.gem

language: ruby
cache: bundler

os:
  - linux

rvm:
  - jruby
  - "2.4"
  - "2.5"
  - "2.6"
  - "2.7"

jobs:
  include:
    - rvm: "2.3"
      before_script:
        - gem install faraday -v 1.0.1
    - os: osx
      rvm: "2.5"
    - os: osx
      rvm: "2.6"
    - stage: deploy
      if: repo = travis-ci/travis.rb and branch = master and type = push
      os: linux
      rvm: "2.6"
      deploy:
        provider: rubygems
        api_key:
          secure: KcBpkFaes74KGMm8X/rRA8e13+t3PmkefsAvOAR+iF4g1GyuLSPkP92Fb9vFfsXBph+qmFh5rNa2lIRf/3RXW6COxY7CMMaARxUfJOKE0rmIwF0qfKI+RZDh6abg92iYngunMZVN8WVft6Lv9ZTOYCWxr1Zs1Ll/Rl4PfvHNd1g=
        gem: travis
        edge: true

script:
  - bundle exec rake
  - gem build travis.gemspec
  - gem install travis-*.gem

Install compat version of faraday for Ruby 2.3
Install compat version of faraday for Ruby 2.3
