language: ruby

rvm:
  - 2.3.3

addons:
  postgresql: "9.5"

before_script:
  - cp config/database.yml.travis config/database.yml
  - psql -c 'create database travis_ci_test;' -U postgres
  - bundle exec rake db:migrate RAILS_ENV=test

script:
  - bundle exec rake
  - bundle exec rubocop

language: ruby

rvm:
  - 2.3.3

addons:
  postgresql: "9.4"

before_script:
  - cp config/database.yml.travis config/database.yml
  - psql -c 'create database travis_ci_test;' -U postgres
  - bundle exec rake db:migrate RAILS_ENV=test

script:
  - bundle exec rake
  - bundle exec rubocop

Revert Travis to Postgres version 9.4
Revert Travis to Postgres version 9.4

This is the latest version that is available without either:
* requiring sudo, which would slow down builds, or
* moving to Trusty, which appears to still be in beta.
