diff --git a/.travis.yml b/.travis.yml index e83dcd7..9a3c1aa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,9 @@ rvm: - 2.0 - 2.1 - rbx-2 +before_script: + - cp config/database.yml.travis config/database.yml + - bundle exec rake db:create db:migrate db:test:prepare matrix: fast_finish: true allow_failures: diff --git a/config/database.yml.travis b/config/database.yml.travis new file mode 100644 index 0000000..d70c441 --- /dev/null +++ b/config/database.yml.travis @@ -0,0 +1,4 @@ +test: + adapter: postgresql + database: travis_ci_test + username: postgres