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 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

Adjust Travis build to migrate database and use bundle exec.
Adjust Travis build to migrate database and use bundle exec.

Note that `db:test:prepare` is not suitable, because of the ActiveAdmin
information embedded within the migrations.
