language: ruby
cache: bundler
sudo: false

before_script: &before_script
  - psql -c 'create database travis_ci_test;' -U postgres
  - mkdir -p tmp
  - RACK_ENV=test bundle exec rake configure:travis db:create db:migrate

jruby_before_script: &jruby_before_script
  - bundle exec jbundle install
  - psql -c 'create database travis_ci_test;' -U postgres
  - mkdir -p tmp
  - RACK_ENV=test bundle exec rake configure:travis db:create db:migrate

matrix:
  fast_finish: true
  allow_failures:
  include:
    - rvm: 2.2.1

services:
  - postgresql
  - cassandra

addons:
  postgresql: "9.4"

script: RACK_ENV=test bundle exec rake spec

language: ruby
cache: bundler
sudo: false

before_script: &before_script
  - psql -c 'create database travis_ci_test;' -U postgres
  - mkdir -p tmp
  - RACK_ENV=test bundle exec rake configure:travis db:setup

jruby_before_script: &jruby_before_script
  - bundle exec jbundle install
  - psql -c 'create database travis_ci_test;' -U postgres
  - mkdir -p tmp
  - RACK_ENV=test bundle exec rake configure:travis db:setup

matrix:
  fast_finish: true
  allow_failures:
  include:
    - rvm: 2.2.1

services:
  - postgresql

addons:
  postgresql: "9.4"

script: RACK_ENV=test bundle exec rake spec

Remove cassandra service, clean up db initialisation
Remove cassandra service, clean up db initialisation
