Skip to content

Commit

Permalink
Merge pull request omniauth#113 from appropriate/appraisal
Browse files Browse the repository at this point in the history
chore: Fix Travis builds using appraisal gem
  • Loading branch information
suprnova32 authored Sep 16, 2016
2 parents 59eeeb1 + bbc29c0 commit f6f9b97
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 23 deletions.
64 changes: 41 additions & 23 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,49 @@
env:
global:
- JRUBY_OPTS="$JRUBY_OPTS --debug"

sudo: false
language: ruby
script: bundle exec rspec
before_install: gem update bundler
cache: bundler

before_install:
- gem update bundler

before_script:
- bundle update

script:
- bundle exec rspec

rvm:
- 1.9.3
- jruby-19mode
- 2.0.0
- 2.1.10
- 2.2.2
- 2.3.1
- jruby-9.0.5.0
- ruby-head

gemfile:
- gemfiles/rack_1.gemfile
- gemfiles/rack_2.gemfile

matrix:
include:
- rvm: 1.9.3
gemfile: Gemfile
- rvm: 2.0.0
gemfile: Gemfile
- rvm: 2.1
gemfile: Gemfile
- rvm: 2.2
gemfile: Gemfile
- rvm: 2.3.0
gemfile: Gemfile
- rvm: jruby-19mode
gemfile: Gemfile
- rvm: jruby-head
gemfile: Gemfile
- rvm: rbx-2
gemfile: Gemfile
- rvm: ruby-head
gemfile: Gemfile
allow_failures:
- rvm: jruby-head
- rvm: ruby-head

fast_finish: true
sudo: false

exclude:
- rvm: 1.9.3
gemfile: gemfiles/rack_2.gemfile

- rvm: jruby-19mode
gemfile: gemfiles/rack_2.gemfile

- rvm: 2.0.0
gemfile: gemfiles/rack_2.gemfile

- rvm: 2.1.10
gemfile: gemfiles/rack_2.gemfile
7 changes: 7 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
appraise 'rack-1' do
gem 'rack', '~> 1.x'
end

appraise 'rack-2' do
gem 'rack', '~> 2.x'
end
7 changes: 7 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@ source 'https://rubygems.org'

group :test do
gem 'coveralls', '~> 0.8', '>= 0.8.13', require: false

# Lock coveralls dependencies to lower versions to work with older rubies
gem 'json', '~> 1.8'
gem 'tins', '~> 1.6.0'

gem 'mime-types', '< 3'
end

gem 'appraisal'

gemspec
15 changes: 15 additions & 0 deletions gemfiles/rack_1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal"
gem "rack", "~> 1.x"

group :test do
gem "coveralls", "~> 0.8", ">= 0.8.13", :require => false
gem "json", "~> 1.8"
gem "tins", "~> 1.6.0"
gem "mime-types", "< 3"
end

gemspec :path => "../"
15 changes: 15 additions & 0 deletions gemfiles/rack_2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "appraisal"
gem "rack", "~> 2.x"

group :test do
gem "coveralls", "~> 0.8", ">= 0.8.13", :require => false
gem "json", "~> 1.8"
gem "tins", "~> 1.6.0"
gem "mime-types", "< 3"
end

gemspec :path => "../"
1 change: 1 addition & 0 deletions omniauth-saml.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency 'omniauth', '~> 1.3'
gem.add_runtime_dependency 'ruby-saml', '~> 1.3'

gem.add_development_dependency 'rake', '>= 10', '< 12'
gem.add_development_dependency 'rspec', '~>3.4'
gem.add_development_dependency 'simplecov', '~> 0.11'
gem.add_development_dependency 'rack-test', '~> 0.6', '>= 0.6.3'
Expand Down

0 comments on commit f6f9b97

Please sign in to comment.