language: ruby
rvm: <%= RUBY_VERSION %>

cache: bundler

before_install:
  - "echo 'gem: --no-document' > ~/.gemrc"
  - "echo '--colour' > ~/.rspec"

before_script:
  - cp .sample.env .env
  - bundle exec rake db:create db:schema:load RAILS_ENV=test

notifications:
  email: false

language: ruby
rvm: <%= RUBY_VERSION %>

addons:
  - postgresql: '9.3'

cache: bundler

before_install:
  - "echo 'gem: --no-document' > ~/.gemrc"
  - "echo '--colour' > ~/.rspec"

before_script:
  - cp .sample.env .env
  - bundle exec rake db:create db:schema:load RAILS_ENV=test

notifications:
  email: false

Use PostgreSQL 9.3 on Travis CI Heroku's default is Postgres 9.3 [1], but Travis' default is Postgres 9.1
Use PostgreSQL 9.3 on Travis CI
Heroku's default is Postgres 9.3 [1], but Travis' default is Postgres 9.1 [2]

[1]: https://devcenter.heroku.com/articles/heroku-postgresql#version-support
[2]: http://docs.travis-ci.com/user/using-postgresql/
