notifications:
  email: false
language: node_js
node_js:
- '6'
addons:
  postgresql: '9.6'
env:
  - DB=postgresql
cache:
  directories:
    - vendor/bundle
    - node_modules
before_install:
  - rvm install 2.2.4
  - gem install bundler
before_script:
  - npm install
  - bundle install
  - psql -c 'CREATE DATABASE db/test' -U postgres
script:
  - npm run style
  - npm run unit-test
  - RAILS_ENV=test bundle exec rake db:migrate --trace
  - RAILS_ENV=test bundle exec rspec

notifications:
  email: false
language: node_js
dist: trusty
node_js:
- '6'
addons:
  postgresql: '9.6'
env:
  - DB=postgresql
cache:
  directories:
    - vendor/bundle
    - node_modules
before_install:
  - rvm install 2.2.4
  - gem install bundler
before_script:
  - npm install
  - bundle install
  - psql -c 'CREATE DATABASE db/test' -U postgres
script:
  - npm run style
  - npm run unit-test
  - RAILS_ENV=test bundle exec rake db:migrate --trace
  - RAILS_ENV=test bundle exec rspec

Set Trusty distribution for psql 9.6
Set Trusty distribution for psql 9.6

https://github.com/travis-ci/travis-ci/issues/5491
