language: ruby
rvm:
  - 2.3.1
  - 2.2.5
  - 2.1.9
  - rbx
gemfile:
  - gemfiles/4.1.gemfile
  - gemfiles/4.2.gemfile
  - gemfiles/5.0.gemfile

matrix:
  allow_failures:
    - rvm: rbx

addons:
  postgresql: "9.2"

before_script:
  - cp spec/database.yml.travis spec/database.yml
  - psql -U postgres -c 'create database surus_test;'
  - psql -U postgres -f spec/database_structure.sql surus_test

script:
  - bundle exec rake spec
  - bundle exec rubocop

language: ruby
sudo: false
cache: bundler
rvm:
  - 2.3.1
  - 2.2.5
  - 2.1.10
  - rbx
gemfile:
  - gemfiles/4.1.gemfile
  - gemfiles/4.2.gemfile
  - gemfiles/5.0.gemfile

matrix:
  allow_failures:
    - rvm: rbx

addons:
  postgresql: "9.2"

before_script:
  - cp spec/database.yml.travis spec/database.yml
  - psql -U postgres -c 'create database surus_test;'
  - psql -U postgres -f spec/database_structure.sql surus_test

script:
  - bundle exec rake spec
  - bundle exec rubocop

Add bundler cache for Travis CI
Add bundler cache for Travis CI