#!/bin/sh case $DB in "mysql" ) mysql -e 'create database radiant_test;' cp spec/ci/database.mysql.yml config/database.yml;; "postgres" ) psql -c 'create database radiant_test;' -U postgres cp spec/ci/database.postgresql.yml config/database.yml;; "sqlite" ) cp spec/ci/database.sqlite.yml config/database.yml;; esac bundle exec rake db:migrate bundle exec rake db:migrate:extensions