Skip to content

Commit

Permalink
travis update
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolae Claudius committed Sep 23, 2012
1 parent 7205558 commit bd02949
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -5,4 +5,4 @@ test/dummy/db/*.sqlite3
test/dummy/log/*.log
test/dummy/tmp/
test/dummy/.sass-cache
/nbproject/private/
/nbproject
12 changes: 12 additions & 0 deletions .travis.yml
@@ -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
4 changes: 3 additions & 1 deletion README.md
@@ -1,3 +1,5 @@
[![Build Status](https://secure.travis-ci.org/clyfe/acts_as_nested_interval.png)](http://travis-ci.org/clyfe/acts_as_nested_interval)

# ActsAsNestedInterval

## About
Expand Down Expand Up @@ -178,4 +180,4 @@ This might change once the AR identity_map is finished.

This: https://github.com/clyfe/acts_as_nested_interval
Original: https://github.com/pythonic/acts_as_nested_interval
Acknowledgement: http://arxiv.org/html/cs.DB/0401014 by Vadim Tropashko.
Acknowledgement: http://arxiv.org/html/cs.DB/0401014 by Vadim Tropashko.
42 changes: 24 additions & 18 deletions test/dummy/config/database.yml
@@ -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

0 comments on commit bd02949

Please sign in to comment.