Permalink
Browse files

Create PostgreSQL DB on Travis

Also initialize the DB up using db:migrate instead of db:setup.
  • Loading branch information...
1 parent 4134b6d commit 578483e614c659198f10361a6d9a79e80c2aa6a9 @tmatilai tmatilai committed Feb 27, 2012
Showing with 4 additions and 4 deletions.
  1. +3 −4 .travis.yml
  2. +1 −0 config/database.travis.postgres.yml
View
@@ -12,10 +12,9 @@ gemfile: Gemfile.ci
before_script:
- "cp config/database.travis.$DB.yml config/database.yml"
+ - "psql -c 'create database avoin_ministerio_test;' -U postgres"
-script: "RAILS_ENV=test bundle exec rake db:setup spec"
+script: "RAILS_ENV=test bundle exec rake db:migrate spec"
notifications:
- email:
- recipients:
- - travis-notifications@avoinministerio.fi
+ email: travis-notifications@avoinministerio.fi
@@ -2,4 +2,5 @@ test:
adapter: postgresql
encoding: unicode
database: avoin_ministerio_test
+ username: postgres
pool: 5

0 comments on commit 578483e

Please sign in to comment.