language: ruby

cache: bundler

before_script: &before_script
  - psql -c 'create database travis_ci_test;' -U postgres
  - rename 's/\.yml.hudson$/\.yml/' config/*.yml.hudson
  - RACK_ENV=test bundle exec rake db:create db:migrate

matrix:
  include:
    - rvm: 2.1.2
    - rvm: jruby-19mode
      jdk: openjdk7
      env: JRUBY_OPTS=--2.0
      before_script:
        - bundle exec jbundle install
        - psql -c 'create database travis_ci_test;' -U postgres
        - rename 's/\.yml.hudson$/\.yml/' config/*.yml.hudson
        - RACK_ENV=test bundle exec rake db:create db:migrate
      
services:
  - postgresql

addons:
  postgresql: "9.3"

script: RACK_ENV=test bundle exec rake spec

language: ruby

cache: bundler

before_script: &before_script
  - psql -c 'create database travis_ci_test;' -U postgres
  - rename 's/\.yml.hudson$/\.yml/' config/*.yml.hudson
  - RACK_ENV=test bundle exec rake db:create db:migrate

jruby_before_script: &jruby_before_script
  - bundle exec jbundle install
  - psql -c 'create database travis_ci_test;' -U postgres
  - rename 's/\.yml.hudson$/\.yml/' config/*.yml.hudson
  - RACK_ENV=test bundle exec rake db:create db:migrate

matrix:
  fast_finish: true
  allow_failures:
    - rvm: 2.1.5
    - rvm: ruby-head
    - rvm: jruby-head
  include:
    - rvm: 2.1.2
    - rvm: jruby-19mode
      jdk: openjdk7
      env: JRUBY_OPTS=--2.0
      before_script: *jruby_before_script
    - rvm: 2.1.5
    - rvm: jruby-head
      jdk: openjdk7
      before_script: *jruby_before_script
    - rvm: ruby-head
      
services:
  - postgresql

addons:
  postgresql: "9.3"

script: RACK_ENV=test bundle exec rake spec

Add rubies to test matrix
Add rubies to test matrix
