Permalink
Browse files

Use Appraisal to test both Rails 4.0 and 4.1

  • Loading branch information...
1 parent 8f63473 commit 25e5b4a08daa585a2a0c4c6a92fe09283849211e @mshibuya mshibuya committed Mar 25, 2014
Showing with 147 additions and 3 deletions.
  1. +1 −0 .gitignore
  2. +17 −3 .travis.yml
  3. +8 −0 Appraisals
  4. +4 −0 Gemfile
  5. +58 −0 gemfiles/rails_4_0.gemfile
  6. +59 −0 gemfiles/rails_4_1.gemfile
View
@@ -7,6 +7,7 @@
.rvmrc
.yardoc
/.emacs.desktop
+/gemfiles/*.lock
/rails_admin.gems
/spec/generators/tmp
/spec/lib/tmp
View
@@ -3,27 +3,41 @@ bundler_args: --without development
rvm:
- 1.9.3
- 2.0.0
- - 2.1.0
+ - 2.1.1
- rbx-2
- ruby-head
+gemfile:
+ - gemfiles/rails_4_1.gemfile
env:
- CI_ORM=mongoid
- CI_ORM=active_record CI_DB_ADAPTER=sqlite3
language: ruby
matrix:
include:
- - rvm: 2.1.0
+ - rvm: 2.1.1
env: CI_ORM=active_record CI_DB_ADAPTER=mysql2
- - rvm: 2.1.0
+ gemfile: gemfiles/rails_4_1.gemfile
+ - rvm: 2.1.1
env: CI_ORM=active_record CI_DB_ADAPTER=postgresql CI_DB_USERNAME=postgres
+ gemfile: gemfiles/rails_4_1.gemfile
+ - rvm: 2.1.1
+ env: CI_ORM=active_record CI_DB_ADAPTER=sqlite3
+ gemfile: gemfiles/rails_4_0.gemfile
+ - rvm: 2.1.1
+ env: CI_ORM=mongoid
+ gemfile: gemfiles/rails_4_0.gemfile
- rvm: jruby-19mode
env: CI_ORM=mongoid JRUBY_OPTS="$JRUBY_OPTS --debug"
+ gemfile: gemfiles/rails_4_1.gemfile
- rvm: jruby-19mode
env: CI_ORM=active_record CI_DB_ADAPTER=sqlite3 JRUBY_OPTS="$JRUBY_OPTS --debug"
+ gemfile: gemfiles/rails_4_1.gemfile
- rvm: jruby-head
env: CI_ORM=mongoid JRUBY_OPTS="$JRUBY_OPTS --debug"
+ gemfile: gemfiles/rails_4_1.gemfile
- rvm: jruby-head
env: CI_ORM=active_record CI_DB_ADAPTER=sqlite3 JRUBY_OPTS="$JRUBY_OPTS --debug"
+ gemfile: gemfiles/rails_4_1.gemfile
allow_failures:
- rvm: jruby-head
- rvm: rbx-2
View
@@ -0,0 +1,8 @@
+appraise 'rails-4-0' do
+ gem 'rails', '~> 4.0.0'
+end
+
+appraise 'rails-4-1' do
+ gem 'rails', '~> 4.1.0.rc1'
+ gem 'mime-types', '~> 1.0'
+end
View
@@ -33,6 +33,10 @@ group :mongoid do
gem 'carrierwave-mongoid', '>= 0.6.3', require: 'carrierwave/mongoid'
end
+group :development do
+ gem 'appraisal', '~> 1.0.0.beta3'
+end
+
group :development, :test do
gem 'pry', '>= 0.9'
platforms :mri_19, :mri_20 do
View
@@ -0,0 +1,58 @@
+# This file was generated by Appraisal
+
+source "https://rubygems.org"
+
+gem "rails", "~> 4.0.0"
+
+group :active_record do
+ platforms :jruby do
+ gem "activerecord-jdbcsqlite3-adapter", ">= 1.3.0.beta1"
+ gem "jdbc-sqlite3", ">= 3.7"
+ end
+
+ platforms :ruby, :mswin, :mingw do
+ gem "sqlite3", ">= 1.3"
+ end
+end
+
+group :mongoid do
+ gem "mongoid", "~> 4.0.0.beta1"
+ gem "mongoid-paperclip", ">= 0.0.8", :require=>"mongoid_paperclip"
+ gem "carrierwave-mongoid", ">= 0.6.3", :require=>"carrierwave/mongoid"
+end
+
+group :development do
+ gem "appraisal", "~> 1.0.0.beta3"
+end
+
+group :development, :test do
+ gem "pry", ">= 0.9"
+
+ platforms :mri_19, :mri_20 do
+ gem "pry-debugger", ">= 0.2"
+ gem "pry-stack_explorer", ">= 0.4.9.1"
+ end
+end
+
+group :test do
+ gem "cancan", ">= 1.6"
+ gem "capybara", ">= 2.1"
+ gem "carrierwave", ">= 0.8"
+ gem "coveralls", :require=>false
+ gem "database_cleaner", ">= 1.2"
+ gem "devise", ">= 3.2"
+ gem "dragonfly", "~> 1.0"
+ gem "factory_girl", ">= 4.2"
+ gem "generator_spec", ">= 0.8"
+ gem "launchy", ">= 2.2"
+ gem "mini_magick", ">= 3.4"
+ gem "paperclip", "3.5.2"
+ gem "poltergeist", "~> 1.5"
+ gem "rack-cache", :require=>"rack/cache"
+ gem "rspec-rails", ">= 2.14"
+ gem "rubocop", ">= 0.19.0"
+ gem "simplecov", :require=>false
+ gem "timecop", ">= 0.5"
+end
+
+gemspec :path=>".././"
View
@@ -0,0 +1,59 @@
+# This file was generated by Appraisal
+
+source "https://rubygems.org"
+
+gem "rails", "~> 4.1.0.rc1"
+gem "mime-types", "~> 1.0"
+
+group :active_record do
+ platforms :jruby do
+ gem "activerecord-jdbcsqlite3-adapter", ">= 1.3.0.beta1"
+ gem "jdbc-sqlite3", ">= 3.7"
+ end
+
+ platforms :ruby, :mswin, :mingw do
+ gem "sqlite3", ">= 1.3"
+ end
+end
+
+group :mongoid do
+ gem "mongoid", "~> 4.0.0.beta1"
+ gem "mongoid-paperclip", ">= 0.0.8", :require=>"mongoid_paperclip"
+ gem "carrierwave-mongoid", ">= 0.6.3", :require=>"carrierwave/mongoid"
+end
+
+group :development do
+ gem "appraisal", "~> 1.0.0.beta3"
+end
+
+group :development, :test do
+ gem "pry", ">= 0.9"
+
+ platforms :mri_19, :mri_20 do
+ gem "pry-debugger", ">= 0.2"
+ gem "pry-stack_explorer", ">= 0.4.9.1"
+ end
+end
+
+group :test do
+ gem "cancan", ">= 1.6"
+ gem "capybara", ">= 2.1"
+ gem "carrierwave", ">= 0.8"
+ gem "coveralls", :require=>false
+ gem "database_cleaner", ">= 1.2"
+ gem "devise", ">= 3.2"
+ gem "dragonfly", "~> 1.0"
+ gem "factory_girl", ">= 4.2"
+ gem "generator_spec", ">= 0.8"
+ gem "launchy", ">= 2.2"
+ gem "mini_magick", ">= 3.4"
+ gem "paperclip", "3.5.2"
+ gem "poltergeist", "~> 1.5"
+ gem "rack-cache", :require=>"rack/cache"
+ gem "rspec-rails", ">= 2.14"
+ gem "rubocop", ">= 0.19.0"
+ gem "simplecov", :require=>false
+ gem "timecop", ">= 0.5"
+end
+
+gemspec :path=>".././"

0 comments on commit 25e5b4a

Please sign in to comment.