sudo: false
language: ruby
rvm:
  - 2.2.3
env:
  - DB=postgres
install:
  - bundle install
env:
  matrix:
    - SOLIDUS_BRANCH=v1.3
    - SOLIDUS_BRANCH=v1.4
    - SOLIDUS_BRANCH=v2.0
    - SOLIDUS_BRANCH=v2.1
    - SOLIDUS_BRANCH=v2.2
script:
  - bundle exec rake test_app
  - ( cd ./spec/dummy && bundle exec rake solidus-adyen:factory_girl:lint RAILS_ENV=test )
  - bundle exec rspec

sudo: false
language: ruby
cache: bundler
rvm:
  - 2.2.3
env:
  - DB=postgres
install:
  - bundle install
env:
  matrix:
    - SOLIDUS_BRANCH=v1.3
    - SOLIDUS_BRANCH=v1.4
    - SOLIDUS_BRANCH=v2.0
    - SOLIDUS_BRANCH=v2.1
    - SOLIDUS_BRANCH=v2.2
script:
  - bundle exec rake test_app
  - ( cd ./spec/dummy && bundle exec rake solidus-adyen:factory_girl:lint RAILS_ENV=test )
  - bundle exec rspec

Enable bundler caching on Travis
Enable bundler caching on Travis

Right now all our builds do a full bundle install which is eating up a
little over 3 minutes per build. Turning on bundler caching should share
bundles between jobs unless anything changes.
