language: ruby
rvm:
  - 2.0.0
  - 1.9.3
  - 1.9.2
services:
  - redis-server
before_script:
  - psql -c 'create database myapp_test;' -U postgres
script:
  - DATABASE_URL=postgresql://postgres:@localhost/myapp_test bundle exec rake db:migrate --trace
  - DATABASE_URL=postgresql://postgres:@localhost/myapp_test bundle exec rspec

language: ruby
rvm:
  - 2.0.0
  - 1.9.3
  - 1.9.2
services:
  - redis-server
before_script:
  - psql -c 'create database myapp_test;' -U postgres
script:
  - DATABASE_URL=postgresql://postgres:@localhost/myapp_test bundle exec rake db:migrate --trace
  - DATABASE_URL=postgresql://postgres:@localhost/myapp_test bundle exec rspec
allow_failures:
  rvm:
    - 1.9.2

Allow build failures for Ruby 1.9.2 .
Allow build failures for Ruby 1.9.2 .

Ruby 1.9.2 is no longer officially supported.
