language: ruby
cache:
  - bundler
  - apt
rvm:
- 2.1.5
before_install:
 - sudo apt-get update
 - sudo apt-get purge postgresql-9.1 postgresql-9.2 postgresql-9.3
 - sudo apt-get install postgresql-client-common postgresql-9.4
 - sudo service postgresql start
before_script:
  - psql -c 'create database travis_ci_test;' -U postgres
  - mv config/database.yml.travis config/database.yml
  - RACK_ENV=test bundle exec rake db:create db:migrate
services:
  - postgresql
addons:
  postgresql: "9.4"
  code_climate:
    repo_token:
      secure: a3KplVoRsWOnQwwTtvsfH0eufR6v8Pro75t5SOf8l7kCp3YkjaU6sfsVsZ9LoFBSlcQEw4M7G/5l7af+Sm8A9Y/OLcze3lunIIZd5TRQM4uvJINwBLxgZo7TTg9/eyzMoxXdLrTfuTd3OweGYAPCFZSfMNDVdjl9wi/7RH420Gg=

language: ruby
cache:
  - bundler
  - apt
rvm:
- 2.1.5
before_install:
 - sudo apt-get update
 - sudo apt-get purge postgresql-9.1 postgresql-9.2 postgresql-9.3
 - sudo apt-get install postgresql-client-common postgresql-9.4
 - sudo service postgresql start
before_script:
  - psql -c 'create database travis_ci_test;' -U postgres
  - mv config/database.yml.travis config/database.yml
  - RACK_ENV=test bundle exec rake db:create db:migrate
addons:
  code_climate:
    repo_token:
      secure: a3KplVoRsWOnQwwTtvsfH0eufR6v8Pro75t5SOf8l7kCp3YkjaU6sfsVsZ9LoFBSlcQEw4M7G/5l7af+Sm8A9Y/OLcze3lunIIZd5TRQM4uvJINwBLxgZo7TTg9/eyzMoxXdLrTfuTd3OweGYAPCFZSfMNDVdjl9wi/7RH420Gg=

Remove old PG service config
Remove old PG service config