mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
Fixing Travis build (#602)
* Remove rails 4.0 from travis build & test on ruby 2.3.0, 2.5.0 * Add minitest gem to rails 3.2 gemfile * Use bundler version 1 for rails 3 & rails 4 * Use bundler 1 for jruby platform * Use bundler 1 on travis because of jruby dependency on bundler 1 * Remove cache & install bundler * [debug] Rvm list to check current ruby version when installing bundler * Uninstall all bundler in travis before_install script * Install gems using bundler 1.0.0 * Use bundle 1.16.1 * Remove bundler from appraisal and gemfiles
This commit is contained in:
parent
65b3b4fae4
commit
c2b16c7001
5 changed files with 29 additions and 29 deletions
23
.travis.yml
23
.travis.yml
|
@ -2,8 +2,14 @@ sudo: false
|
||||||
language: ruby
|
language: ruby
|
||||||
cache: bundler
|
cache: bundler
|
||||||
|
|
||||||
|
before_install:
|
||||||
|
- rvm list
|
||||||
|
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
|
||||||
|
- gem install bundler -v '1.16.1'
|
||||||
|
- bundle _1.16.1_ install
|
||||||
|
|
||||||
rvm:
|
rvm:
|
||||||
- 2.4.0
|
- 2.3.0
|
||||||
- 2.5.0
|
- 2.5.0
|
||||||
- jruby-9.1.12.0
|
- jruby-9.1.12.0
|
||||||
|
|
||||||
|
@ -16,7 +22,6 @@ addons:
|
||||||
|
|
||||||
gemfile:
|
gemfile:
|
||||||
- gemfiles/rails_3.2.gemfile
|
- gemfiles/rails_3.2.gemfile
|
||||||
- gemfiles/rails_4.0.gemfile
|
|
||||||
- gemfiles/rails_4.2.gemfile
|
- gemfiles/rails_4.2.gemfile
|
||||||
- gemfiles/rails_4.2_mongoid_5.gemfile
|
- gemfiles/rails_4.2_mongoid_5.gemfile
|
||||||
- gemfiles/rails_4.2_nobrainer.gemfile
|
- gemfiles/rails_4.2_nobrainer.gemfile
|
||||||
|
@ -36,6 +41,20 @@ script:
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
exclude:
|
exclude:
|
||||||
|
- rvm: 2.3.0
|
||||||
|
gemfile: gemfiles/rails_5.0.gemfile
|
||||||
|
- rvm: 2.3.0
|
||||||
|
gemfile: gemfiles/rails_5.0_nobrainer.gemfile
|
||||||
|
- rvm: 2.3.0
|
||||||
|
gemfile: gemfiles/rails_5.1.gemfile
|
||||||
|
- rvm: 2.5.0
|
||||||
|
gemfile: gemfiles/rails_3.2.gemfile
|
||||||
|
- rvm: 2.5.0
|
||||||
|
gemfile: gemfiles/rails_4.2.gemfile
|
||||||
|
- rvm: 2.5.0
|
||||||
|
gemfile: gemfiles/rails_4.2_mongoid_5.gemfile
|
||||||
|
- rvm: 2.5.0
|
||||||
|
gemfile: gemfiles/rails_4.2_nobrainer.gemfile
|
||||||
- rvm: jruby-9.1.12.0
|
- rvm: jruby-9.1.12.0
|
||||||
gemfile: gemfiles/rails_5.0.gemfile
|
gemfile: gemfiles/rails_5.0.gemfile
|
||||||
- rvm: jruby-9.1.12.0
|
- rvm: jruby-9.1.12.0
|
||||||
|
|
12
Appraisals
12
Appraisals
|
@ -4,17 +4,7 @@ appraise 'rails_3.2' do
|
||||||
gem 'sequel'
|
gem 'sequel'
|
||||||
gem 'bson_ext', platforms: :ruby
|
gem 'bson_ext', platforms: :ruby
|
||||||
gem 'test-unit', '~> 3.0'
|
gem 'test-unit', '~> 3.0'
|
||||||
gem 'activerecord-jdbcsqlite3-adapter', '1.3.24', platforms: :jruby
|
gem 'minitest'
|
||||||
end
|
|
||||||
|
|
||||||
appraise 'rails_4.0' do
|
|
||||||
gem 'mime-types', '~> 2', platforms: %i[ruby_19 jruby]
|
|
||||||
gem 'rails', '4.0.13'
|
|
||||||
gem 'mongoid', '~> 4.0'
|
|
||||||
gem 'sequel'
|
|
||||||
gem 'dynamoid', '~> 1', platforms: :ruby
|
|
||||||
gem 'aws-sdk', '~> 2', platforms: :ruby
|
|
||||||
gem 'redis-objects'
|
|
||||||
gem 'activerecord-jdbcsqlite3-adapter', '1.3.24', platforms: :jruby
|
gem 'activerecord-jdbcsqlite3-adapter', '1.3.24', platforms: :jruby
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
FROM ruby:2.3.4-slim
|
ARG RVM_RUBY_VERSIONS="2.4.0 2.5.0"
|
||||||
|
ARG RVM_RUBY_DEFAULT="2.4.0"
|
||||||
|
FROM msati/docker-rvm
|
||||||
|
|
||||||
|
# After Ruby versions are installed we continue as non-root rvm user
|
||||||
|
USER ${RVM_USER}
|
||||||
|
|
||||||
LABEL maintainer="AASM"
|
LABEL maintainer="AASM"
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@ gem "mongoid", "~> 3.1"
|
||||||
gem "sequel"
|
gem "sequel"
|
||||||
gem "bson_ext", platforms: :ruby
|
gem "bson_ext", platforms: :ruby
|
||||||
gem "test-unit", "~> 3.0"
|
gem "test-unit", "~> 3.0"
|
||||||
|
gem "minitest"
|
||||||
gem "activerecord-jdbcsqlite3-adapter", "1.3.24", platforms: :jruby
|
gem "activerecord-jdbcsqlite3-adapter", "1.3.24", platforms: :jruby
|
||||||
|
|
||||||
gemspec path: "../"
|
gemspec path: "../"
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
# This file was generated by Appraisal
|
|
||||||
|
|
||||||
source "https://rubygems.org"
|
|
||||||
|
|
||||||
gem "sqlite3", "~> 1.3.5", platforms: :ruby
|
|
||||||
gem "rails", "4.0.13"
|
|
||||||
gem "mime-types", "~> 2", platforms: [:ruby_19, :jruby]
|
|
||||||
gem "mongoid", "~> 4.0"
|
|
||||||
gem "sequel"
|
|
||||||
gem "dynamoid", "~> 1", platforms: :ruby
|
|
||||||
gem "aws-sdk", "~> 2", platforms: :ruby
|
|
||||||
gem "redis-objects"
|
|
||||||
gem "activerecord-jdbcsqlite3-adapter", "1.3.24", platforms: :jruby
|
|
||||||
|
|
||||||
gemspec path: "../"
|
|
Loading…
Reference in a new issue