language: ruby
sudo: false
env:
  global:
    - secure: "gxjwgl9l9ZP/1t86odZyMzWyiVBkG1oFzeL+Kb6z9Dtfu954l9RbytlenTTcnRw1KtaDBZVBs0ix3K45b8T2S6JFzLQ88Z/36DmXGIN6vxctfnVD9sqbbyOuP++RhibK+qUqbPRHo6a3wBsMQ87DMj5S6pJe3dxbCKRXa8zcMd0="
before_install:
  - rm -f Gemfile.lock
  - git clean -fdx
script:
  - bundle exec rake spec integration_tests
before_deploy:
- test $TRAVIS_TEST_RESULT = 0
deploy:
- provider: script
  script: ./config.sh
  on: master
- provider: script
  script: 'bundle exec rake build:and_release_if_updated'
  on:
    branch: master
notifications:
  email:
    on_success: never
    on_failure: always

language: ruby
cache: bundler
sudo: false
env:
  global:
    - secure: "gxjwgl9l9ZP/1t86odZyMzWyiVBkG1oFzeL+Kb6z9Dtfu954l9RbytlenTTcnRw1KtaDBZVBs0ix3K45b8T2S6JFzLQ88Z/36DmXGIN6vxctfnVD9sqbbyOuP++RhibK+qUqbPRHo6a3wBsMQ87DMj5S6pJe3dxbCKRXa8zcMd0="
before_install:
  - rm -f Gemfile.lock
  - git clean -fdx
script:
  - bundle exec rake spec integration_tests
before_deploy:
- test $TRAVIS_TEST_RESULT = 0
deploy:
- provider: script
  script: ./config.sh
  on: master
- provider: script
  script: 'bundle exec rake build:and_release_if_updated'
  on:
    branch: master
notifications:
  email:
    on_success: never
    on_failure: always

Enable bundler caching to speed up the build
Enable bundler caching to speed up the build

Caching the bundle between builds drastically reduces the time a build
takes to run.
