language: ruby
cache: bundler
dist: trusty
sudo: false

env:
  - VAULT_VERSION=0.9.6
  - VAULT_VERSION=0.8.3
  - VAULT_VERSION=0.7.3
  - VAULT_VERSION=0.6.5
  - VAULT_VERSION=0.5.3
  - VAULT_VERSION=0.4.1
  - VAULT_VERSION=0.3.1

before_install:
  - wget -O vault.zip -q https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_amd64.zip
  - unzip vault.zip
  - mkdir -p ~/bin
  - mv vault ~/bin
  - export PATH="~/bin:$PATH"

branches:
  only:
    - master

rvm:
  - 2.2.10
  - 2.3.8
  - 2.4.5
  - 2.5.3

before_script:
  - bundle exec rake app:db:create
  - bundle exec rake app:db:schema:load
  - bundle exec rake app:db:test:prepare
  - bundle exec appraisal install

script: bundle exec appraisal rake

language: ruby
cache: bundler
dist: trusty
sudo: false

env:
  - VAULT_VERSION=0.9.6
  - VAULT_VERSION=0.8.3
  - VAULT_VERSION=0.7.3
  - VAULT_VERSION=0.6.5
  - VAULT_VERSION=0.5.3
  - VAULT_VERSION=0.4.1
  - VAULT_VERSION=0.3.1

before_install:
  - wget -O vault.zip -q https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_amd64.zip
  - unzip vault.zip
  - mkdir -p ~/bin
  - mv vault ~/bin
  - export PATH="~/bin:$PATH"

branches:
  only:
    - master

rvm:
  - "2.4"
  - "2.5"
  - "2.6"

before_script:
  - bundle exec rake app:db:create
  - bundle exec rake app:db:schema:load
  - bundle exec rake app:db:test:prepare
  - bundle exec appraisal install

script: bundle exec appraisal rake

Drop support for Ruby 2.2 and 2.3 (EOL), add 2.6
Drop support for Ruby 2.2 and 2.3 (EOL), add 2.6

Also allow Travis to pick the most recent patch version.
