Permalink
Browse files

we needz some database yml action

  • Loading branch information...
1 parent 0f3e078 commit 3f9c7a3513748703c4a6e34862cd32badd646b87 @joshk joshk committed Apr 29, 2013
Showing with 18 additions and 0 deletions.
  1. +1 −0 .travis.yml
  2. +17 −0 config/database.example.yml
View
1 .travis.yml
@@ -6,5 +6,6 @@ services:
- redis
- rabbitmq
before_script:
+ - cp config/database.example.yml config/database.yml
- 'RAILS_ENV=test rake db:create db:schema:load --trace'
script: bundle exec rspec spec
View
17 config/database.example.yml
@@ -0,0 +1,17 @@
+# This is only used for standalone_migrations. In other contexts
+# Travis.config.database will be used.
+
+defaults: &defaults
+ adapter: postgresql
+ encoding: unicode
+ pool: 5
+ min_messages: warning
+ username: <%= ENV['USER'] %>
+
+development:
+ <<: *defaults
+ database: travis_development
+
+test:
+ <<: *defaults
+ database: travis_test

0 comments on commit 3f9c7a3

Please sign in to comment.