Skip to content
Browse files

Support testing activerecord 4.1 from git.

This could be changed once Rails 4.1 is released to use rubygems, but it
might also be interesting to test against the stable branch for
regressions.
  • Loading branch information...
1 parent b15e6e1 commit a73eacfcf6ce93bd51808458ea7ce2c3f4604801 @zzak zzak committed Feb 24, 2014
Showing with 29 additions and 2 deletions.
  1. +3 −0 .travis.yml
  2. +2 −2 Rakefile
  3. +24 −0 gemfiles/active_record_41.gemfile
View
3 .travis.yml
@@ -15,6 +15,7 @@ gemfile:
- gemfiles/active_record_31.gemfile
- gemfiles/active_record_32.gemfile
- gemfiles/active_record_40.gemfile
+ - gemfiles/active_record_41.gemfile
- gemfiles/active_record_edge.gemfile
- gemfiles/data_mapper_12.gemfile
- gemfiles/mongo_mapper.gemfile
@@ -30,6 +31,8 @@ matrix:
- rvm: 1.8.7
gemfile: gemfiles/active_record_40.gemfile
- rvm: 1.8.7
+ gemfile: gemfiles/active_record_41.gemfile
+ - rvm: 1.8.7
gemfile: gemfiles/active_record_edge.gemfile
- rvm: 1.8.7
gemfile: gemfiles/mongoid_30.gemfile
View
4 Rakefile
@@ -13,7 +13,7 @@ end
task :default => "spec:all"
namespace :spec do
- %w(active_record_edge active_record_40 active_record_32 active_record_31 active_record_30 data_mapper_12 mongoid_31 mongoid_30 mongoid_24 mongo_mapper sinatra_13 sinatra_14).each do |gemfile|
+ %w(active_record_edge active_record_40 active_record_41 active_record_32 active_record_31 active_record_30 data_mapper_12 mongoid_31 mongoid_30 mongoid_24 mongo_mapper sinatra_13 sinatra_14).each do |gemfile|
desc "Run Tests against #{gemfile}"
task gemfile do
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
@@ -23,7 +23,7 @@ namespace :spec do
desc "Run Tests against all ORMs"
task :all do
- %w(active_record_edge active_record_40 active_record_32 active_record_31 active_record_30 data_mapper_12 mongoid_31 mongoid_30 mongoid_24 mongo_mapper sinatra_13 sinatra_14).each do |gemfile|
+ %w(active_record_edge active_record_40 active_record_41 active_record_32 active_record_31 active_record_30 data_mapper_12 mongoid_31 mongoid_30 mongoid_24 mongo_mapper sinatra_13 sinatra_14).each do |gemfile|
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle --quiet"
sh "BUNDLE_GEMFILE='gemfiles/#{gemfile}.gemfile' bundle exec rake spec"
end
View
24 gemfiles/active_record_41.gemfile
@@ -0,0 +1,24 @@
+source 'https://rubygems.org'
+
+git 'git://github.com/rails/rails.git', branch: '4-1-stable' do
+ gem 'railties'
+ gem 'activerecord', :require => 'active_record'
+ gem 'actionview', :require => 'action_view'
+end
+
+gem 'rspec-rails', '>= 2.0'
+
+platforms :ruby, :rbx do
+ gem 'sqlite3'
+end
+platforms :jruby do
+ gem 'activerecord-jdbcsqlite3-adapter', '>= 1.3.0'
+end
+platforms :rbx do
+ gem 'rubysl', '~> 2.0'
+ gem 'racc'
+ gem 'rubysl-test-unit'
+ gem 'rubinius-developer_tools'
+end
+
+gemspec :path => '../'

0 comments on commit a73eacf

Please sign in to comment.
Something went wrong with that request. Please try again.