Permalink
Browse files

Optimize CI matrix

  • Loading branch information...
1 parent 01fc9b5 commit 722e594771e6dafbb84c94323a825b0ecd31b327 @sferik committed Apr 12, 2012
Showing with 4 additions and 132 deletions.
  1. +4 −58 .travis.yml
  2. +0 −74 Gemfile31
View
@@ -1,69 +1,15 @@
bundler_args: "--without debug"
+rvm:
+ - jruby-18mode
+ - 1.8.7
+ - 1.9.3
env:
- "CI_ORM=active_record CI_DB_ADAPTER=sqlite3"
- "CI_ORM=active_record CI_DB_ADAPTER=postgresql CI_DB_USERNAME=postgres"
- "CI_ORM=active_record CI_DB_ADAPTER=mysql"
- "CI_ORM=mongoid"
- "CI_ORM=mongoid CI_ORM_VERSION=head"
-gemfile:
- - Gemfile
- - Gemfile31
language: ruby
-matrix:
- exclude:
- - rvm: 1.8.7
- env: "CI_ORM=active_record CI_DB_ADAPTER=mysql"
- gemfile: Gemfile
- - rvm: 1.8.7
- env: "CI_ORM=active_record CI_DB_ADAPTER=mysql"
- gemfile: Gemfile31
- - rvm: 1.8.7
- env: "CI_ORM=active_record CI_DB_ADAPTER=postgresql CI_DB_USERNAME=postgres"
- gemfile: Gemfile
- - rvm: 1.8.7
- env: "CI_ORM=active_record CI_DB_ADAPTER=postgresql CI_DB_USERNAME=postgres"
- gemfile: Gemfile31
- - rvm: 1.8.7
- env: "CI_ORM=active_record CI_DB_ADAPTER=sqlite3"
- gemfile: Gemfile31
- - rvm: 1.8.7
- gemfile: Gemfile
- env: "CI_ORM=mongoid CI_ORM_VERSION=head"
- - rvm: 1.8.7
- gemfile: Gemfile31
- env: "CI_ORM=mongoid"
- - rvm: 1.8.7
- gemfile: Gemfile31
- env: "CI_ORM=mongoid CI_ORM_VERSION=head"
-
- - rvm: jruby-18mode
- env: "CI_ORM=active_record CI_DB_ADAPTER=mysql"
- gemfile: Gemfile
- - rvm: jruby-18mode
- env: "CI_ORM=active_record CI_DB_ADAPTER=mysql"
- gemfile: Gemfile31
- - rvm: jruby-18mode
- env: "CI_ORM=active_record CI_DB_ADAPTER=postgresql CI_DB_USERNAME=postgres"
- gemfile: Gemfile
- - rvm: jruby-18mode
- env: "CI_ORM=active_record CI_DB_ADAPTER=postgresql CI_DB_USERNAME=postgres"
- gemfile: Gemfile31
- - rvm: jruby-18mode
- env: "CI_ORM=active_record CI_DB_ADAPTER=sqlite3"
- gemfile: Gemfile31
- - rvm: jruby-18mode
- gemfile: Gemfile
- env: "CI_ORM=mongoid CI_ORM_VERSION=head"
- - rvm: jruby-18mode
- gemfile: Gemfile31
- env: "CI_ORM=mongoid"
- - rvm: jruby-18mode
- gemfile: Gemfile31
- env: "CI_ORM=mongoid CI_ORM_VERSION=head"
notifications:
irc: "irc.freenode.org#railsadmin"
-rvm:
- - 1.8.7
- - 1.9.3
- - jruby-18mode
script: spec/ci.sh
View
@@ -1,74 +0,0 @@
-source 'https://rubygems.org'
-
-# Bundle gems for the local environment. Make sure to
-# put test-only gems in this group so their generators
-# and rake tasks are available in development mode:
-gem 'rails', '~> 3.1.3'
-
-group :active_record do
- platforms :jruby do
- gem 'jruby-openssl', '~> 0.7'
- case ENV['CI_DB_ADAPTER']
- when 'mysql'
- gem 'activerecord-jdbcmysql-adapter', '~> 1.2'
- gem 'jdbc-mysql', '~> 5.1'
- when 'postgresql'
- gem 'activerecord-jdbcpostgresql-adapter', '~> 1.2'
- gem 'jdbc-postgres', '~> 9.0'
- else
- gem 'activerecord-jdbcsqlite3-adapter', '~> 1.2'
- gem 'jdbc-sqlite3', '~> 3.6'
- end
- end
-
- platforms :ruby, :mswin, :mingw do
- case ENV['CI_DB_ADAPTER']
- when 'mysql'
- gem 'mysql', '~> 2.8'
- when 'postgresql'
- gem 'pg', '~> 0.13'
- else
- gem 'sqlite3', '~> 1.3'
- end
- end
- gem 'paperclip', '~>2.4'
- gem 'carrierwave'
- gem 'dragonfly'
-end
-
-group :mongoid do
- gem 'bson_ext'
- case ENV['CI_ORM_VERSION']
- when 'head'
- gem 'mongoid', :git => 'git://github.com/mongoid/mongoid.git'
- # For now, carrierwave-mongooid's mongoid dependency is restricted to '~> 2.1'
- gem 'carrierwave-mongoid', :require => 'carrierwave/mongoid', :git => 'git://github.com/tanordheim/carrierwave-mongoid.git', :branch => 'mongoid_3_0'
- else
- gem 'mongoid'
- gem 'carrierwave-mongoid', :require => 'carrierwave/mongoid'
- end
- gem 'mongoid-paperclip', :require => 'mongoid_paperclip'
- gem 'paperclip', '~>2.4'
- gem 'dragonfly'
-end
-
-group :development, :test do
- gem 'cancan'
-end
-
-group :debug do
- platform :mri_18 do
- gem 'ruby-debug'
- gem 'linecache'
- end
-
- platform :mri_19 do
- gem 'ruby-debug19'
- end
-end
-
-platforms :jruby, :mingw_18, :ruby_18 do
- gem 'fastercsv', '~> 1.5'
-end
-
-gemspec

0 comments on commit 722e594

Please sign in to comment.