Skip to content

Commit

Permalink
Merge pull request #18 from coffeejunk/fix_travis
Browse files Browse the repository at this point in the history
Add a database configuration for travis ci
  • Loading branch information
tibastral committed Oct 30, 2013
2 parents 6ae87d8 + e32ce93 commit f14e7ba
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis.yml
@@ -1,4 +1,7 @@
language: ruby
rvm:
1.9.3
before_script: RAILS_ENV=test rake db:migrate --trace
before_script:
- cp config/travis.database.yml config/database.yml
- psql -c 'create database presentations_test;' -U postgres
- RAILS_ENV=test rake db:migrate --trace
13 changes: 13 additions & 0 deletions config/travis.database.yml
@@ -0,0 +1,13 @@
# Travis CI requires the username `postgres` when using postgresql as
# the database service. This however clashes with the common postgresql
# installation on Macs (i.e. the postgres username is the system username).
test: &test
adapter: postgresql
username: postgres
encoding: unicode
database: presentations_test
pool: 5
min_messages: WARNING

cucumber:
<<: *test

0 comments on commit f14e7ba

Please sign in to comment.