Skip to content

Commit 1a69aed

Browse files
committed
Add support for travis on the database
1 parent 0790fe8 commit 1a69aed

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
language: ruby
22
rvm:
33
- ruby-head
4+
5+
before_script:
6+
- psql -c 'create database community_test;' -U postgres

config/database.yml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ test:
1111
database: community_test
1212
pool: 5
1313
host: localhost
14+
username: <%= ENV['TRAVIS'] ? 'postgres' : '' %>
1415

1516
production:
1617
adapter: postgresql

0 commit comments

Comments
 (0)