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

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:
  # Downgrade Bundler to 1.x
  - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
  - gem install bundler -v '< 2'
  - 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

Use Bundler 1.X on Travis
Use Bundler 1.X on Travis
