Skip to content

Commit

Permalink
Create PostgreSQL DB on Travis
Browse files Browse the repository at this point in the history
Also initialize the DB up using db:migrate instead of db:setup.
  • Loading branch information
tmatilai committed Feb 27, 2012
1 parent 4134b6d commit 578483e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions config/database.travis.postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.