sudo: required
dist: trusty

language: ruby

addons:
  chrome: stable

env:
  - DB=postgres
  - DB=mysql

gemfile:
  - gemfiles/spree_3_2.gemfile
  - gemfiles/spree_3_5.gemfile
  - gemfiles/spree_3_7.gemfile
  - gemfiles/spree_master.gemfile

script:
  - bundle exec rake test_app
  - bundle exec rake spec

rvm:
  - 2.5.1
  - 2.4.4
  - 2.3.7

matrix:
    allow_failures:
          - gemfile: gemfiles/spree_master.gemfile
    exclude:
    - rvm: 2.3.7
      gemfile: gemfiles/spree_master.gemfile
    - rvm: 2.4.4
      gemfile: gemfiles/spree_master.gemfile

before_install:
  - mysql -u root -e "GRANT ALL ON *.* TO 'travis'@'%';"
  - wget -N https://chromedriver.storage.googleapis.com/2.35/chromedriver_linux64.zip -P ~/
  - unzip ~/chromedriver_linux64.zip -d ~/
  - rm ~/chromedriver_linux64.zip
  - sudo mv -f ~/chromedriver /usr/local/share/
  - sudo chmod +x /usr/local/share/chromedriver
  - sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver

sudo: required
dist: trusty

language: ruby

addons:
  chrome: stable
  postgresql: 9.4

env:
  - DB=postgres
  - DB=mysql

gemfile:
  - gemfiles/spree_3_2.gemfile
  - gemfiles/spree_3_5.gemfile
  - gemfiles/spree_3_7.gemfile
  - gemfiles/spree_master.gemfile

script:
  - bundle exec rake test_app
  - bundle exec rake spec

rvm:
  - 2.5.1
  - 2.4.4
  - 2.3.7

matrix:
    allow_failures:
          - gemfile: gemfiles/spree_master.gemfile
    exclude:
    - rvm: 2.3.7
      gemfile: gemfiles/spree_master.gemfile
    - rvm: 2.4.4
      gemfile: gemfiles/spree_master.gemfile

before_install:
  - mysql -u root -e "GRANT ALL ON *.* TO 'travis'@'%';"
  - wget -N https://chromedriver.storage.googleapis.com/2.35/chromedriver_linux64.zip -P ~/
  - unzip ~/chromedriver_linux64.zip -d ~/
  - rm ~/chromedriver_linux64.zip
  - sudo mv -f ~/chromedriver /usr/local/share/
  - sudo chmod +x /usr/local/share/chromedriver
  - sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver

Use PostgreSQL 9.4 for Rails 6.0 support
Use PostgreSQL 9.4 for Rails 6.0 support
