Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nicolae Claudius
committed
Sep 23, 2012
1 parent
7205558
commit bd02949
Showing
4 changed files
with
40 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
language: ruby | ||
rvm: | ||
- 1.9.3 | ||
env: | ||
- DB=sqlite | ||
- DB=mysql | ||
- DB=postgresql | ||
script: | ||
- RAILS_ENV=test bundle exec rake --trace db:migrate test | ||
before_script: | ||
- mysql -e 'create database myapp_test' | ||
- psql -c 'create database myapp_test' -U postgres |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,31 @@ | ||
# SQLite version 3.x | ||
# gem install sqlite3 | ||
# | ||
# Ensure the SQLite 3 gem is defined in your Gemfile | ||
# gem 'sqlite3' | ||
development: | ||
sqlite: &sqlite | ||
adapter: sqlite3 | ||
database: db/development.sqlite3 | ||
database: db/<%= Rails.env %>.sqlite3 | ||
|
||
mysql: &mysql | ||
adapter: mysql2 | ||
username: root | ||
password: | ||
database: dummy_<%= Rails.env %> | ||
|
||
postgresql: &postgresql | ||
adapter: postgresql | ||
username: postgres | ||
password: | ||
database: dummy_<%= Rails.env %> | ||
min_messages: ERROR | ||
|
||
defaults: &defaults | ||
pool: 5 | ||
timeout: 5000 | ||
host: localhost | ||
<<: *<%= ENV['DB'] || "sqlite" %> | ||
|
||
development: | ||
<<: *defaults | ||
|
||
# Warning: The database defined as "test" will be erased and | ||
# re-generated from your development database when you run "rake". | ||
# Do not set this db to the same as development or production. | ||
test: | ||
adapter: sqlite3 | ||
database: db/test.sqlite3 | ||
pool: 5 | ||
timeout: 5000 | ||
<<: *defaults | ||
|
||
production: | ||
adapter: sqlite3 | ||
database: db/production.sqlite3 | ||
pool: 5 | ||
timeout: 5000 | ||
<<: *defaults |