language: ruby
rvm:
  - 1.9.3
before_script:
  - cp .env.sample .env
  - bundle exec rake db:create db:setup
env: DATABASE_USERNAME=postgres DATABASE_PASSWORD=''
cache: bundler
script: bundle exec rake spec

language: ruby
rvm:
  - 1.9.3
before_script:
  - cp .env.sample .env
  - bundle exec rake db:create db:setup
env: DATABASE_USERNAME=postgres DATABASE_PASSWORD=''
cache: bundler
script: bundle exec rake spec
sudo: false

Allow using Travis CI's container builds
Allow using Travis CI's container builds

See http://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-infrastructure/
