db config for travis

This commit is contained in:
William Wedler 2014-09-06 12:39:10 -04:00
parent 031c712b48
commit 168d5d44e3
2 changed files with 6 additions and 0 deletions

View File

@ -5,4 +5,5 @@ before_install:
- "export DISPLAY=:99.0" - "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start" - "sh -e /etc/init.d/xvfb start"
before_script: before_script:
- cp config/database.yml.travis config/database.yml
- psql -c 'create database bike_bike_test;' -U postgres - psql -c 'create database bike_bike_test;' -U postgres

View File

@ -0,0 +1,5 @@
test:
adapter: postgresql
encoding: unicode
database: travis_ci_test
username: postgres