Skip to content

Commit

Permalink
Add gemfile support for testing against various versions of
Browse files Browse the repository at this point in the history
activerecord on travis.
  • Loading branch information
Zachary Scott committed Feb 24, 2014
1 parent 587074b commit 9de04ab
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,3 +2,4 @@ pkg
.bundle
.DS_Store
Gemfile.lock
gemfiles/*.lock
16 changes: 13 additions & 3 deletions .travis.yml
@@ -1,6 +1,16 @@
language: ruby
rvm:
- 1.9.2
- 1.9.3
- jruby-19mode
- rbx-19mode
- 2.0.0
- 2.1.0
- jruby
- rbx
gemfile:
- gemfiles/active_record_40.gemfile
- gemfiles/active_record_41.gemfile
- gemfiles/active_record_edge.gemfile
matrix:
allow_failures:
- rvm: rbx
- rvm: jruby
fast_finish: true
13 changes: 13 additions & 0 deletions gemfiles/active_record_40.gemfile
@@ -0,0 +1,13 @@
source 'https://rubygems.org'

gem 'activerecord', '~> 4.0.0', :require => 'active_record'
gem 'activesupport', '~> 4.0.0', :require => 'active_record'

platforms :ruby, :rbx do
gem 'sqlite3'
end
platforms :jruby do
gem 'activerecord-jdbcsqlite3-adapter'
end

gemspec :path => '../'
15 changes: 15 additions & 0 deletions gemfiles/active_record_41.gemfile
@@ -0,0 +1,15 @@
source 'https://rubygems.org'

git 'git://github.com/rails/rails.git', :branch => '4-1-stable' do
gem 'activerecord', :require => 'active_record'
gem 'activesupport', :require => 'active_record'
end

platforms :ruby, :rbx do
gem 'sqlite3'
end
platforms :jruby do
gem 'activerecord-jdbcsqlite3-adapter'
end

gemspec :path => '../'
15 changes: 15 additions & 0 deletions gemfiles/active_record_edge.gemfile
@@ -0,0 +1,15 @@
source 'https://rubygems.org'

git 'git://github.com/rails/rails.git' do
gem 'activerecord', :require => 'active_record'
gem 'activesupport', :require => 'active_record'
end

platforms :ruby, :rbx do
gem 'sqlite3'
end
platforms :jruby do
gem 'activerecord-jdbcsqlite3-adapter'
end

gemspec :path => '../'

0 comments on commit 9de04ab

Please sign in to comment.