aboutsummaryrefslogtreecommitdiffstats
path: root/config/database.yml.travis
diff options
context:
space:
mode:
Diffstat (limited to 'config/database.yml.travis')
-rw-r--r--config/database.yml.travis8
1 files changed, 7 insertions, 1 deletions
diff --git a/config/database.yml.travis b/config/database.yml.travis
index 0335bca94..40a95e668 100644
--- a/config/database.yml.travis
+++ b/config/database.yml.travis
@@ -1,5 +1,11 @@
+development:
+ adapter: <%= RUBY_PLATFORM == "java" ? "jdbcpostgresql" : "postgresql" %>
+ database: <%= (ENV["GIT_BRANCH"].nil? || ENV["GIT_BRANCH"] == "master") ? "chouette_d" : "chouette_" + ENV["GIT_BRANCH"] + "_d" %>
+ encoding: utf8
+ username: postgres
+
test:
- adapter: jdbcpostgresql
+ adapter: <%= RUBY_PLATFORM == "java" ? "jdbcpostgresql" : "postgresql" %>
database: <%= (ENV["GIT_BRANCH"].nil? || ENV["GIT_BRANCH"] == "master") ? "chouette_test" : "chouette_" + ENV["GIT_BRANCH"] + "_test" %>
encoding: utf8
username: postgres \ No newline at end of file