sudo: required
dist: trusty

language: ruby

env:
  - DB=postgres
  - DB=mysql

gemfile:
  - gemfiles/spree_3_1.gemfile
  - gemfiles/spree_3_2.gemfile
  - gemfiles/spree_3_3.gemfile
  - gemfiles/spree_3_4.gemfile
  - gemfiles/spree_master.gemfile

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

rvm:
  - 2.3.1
  - 2.2.7

before_install:
  - mysql -u root -e "GRANT ALL ON *.* TO 'travis'@'%';"

sudo: required
dist: trusty

language: ruby

env:
  - DB=postgres
  - DB=mysql

gemfile:
  - gemfiles/spree_3_1.gemfile
  - gemfiles/spree_3_2.gemfile
  - gemfiles/spree_3_3.gemfile
  - gemfiles/spree_3_4.gemfile
  - gemfiles/spree_master.gemfile

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

rvm:
  - 2.4.2
  - 2.3.1
  - 2.2.7

before_install:
  - mysql -u root -e "GRANT ALL ON *.* TO 'travis'@'%';"

Test extensions on Travis against Ruby 2.2, 2.3 and 2.4
Test extensions on Travis against Ruby 2.2, 2.3 and 2.4
