Skip to content

Commit

Permalink
Add datamapper to travis.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Federico Zagarzazú committed Dec 27, 2013
1 parent 5a2b95f commit a4148bb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ gemfile:
- Gemfile
- Gemfile.rails4

before_script:
- mysql -e 'create database sorcery_test;'

script:
- "SORCERY_ORM=active_record bundle exec rake spec SPEC=spec/active_record"
- "SORCERY_ORM=mongoid bundle exec rake spec SPEC=spec/mongoid"
- "SORCERY_ORM=mongo_mapper bundle exec rake spec SPEC=spec/mongo_mapper"
- "SORCERY_ORM=datamapper bundle exec rake spec SPEC=spec/datamapper"
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ group :mongoid do
end

group :datamapper do
gem 'mysql2'
gem 'data_mapper'
gem 'dm-sqlite-adapter'
gem 'dm-mysql-adapter'
Expand Down
3 changes: 2 additions & 1 deletion spec/orm/datamapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
# 1. Create test database.
# 2. DM creates tables case insensitive by default.
# -
DataMapper.setup(:default, "mysql://root:<password>@localhost/sorcery_test")
#DataMapper.setup(:default, "mysql://root:<password>@localhost/sorcery_test")
DataMapper.setup(:default, "mysql://travis:@127.0.0.1/sorcery_test")

# Redis
# NOTE
Expand Down

0 comments on commit a4148bb

Please sign in to comment.