Skip to content

Commit

Permalink
Test both rest-client 1.8 and latest
Browse files Browse the repository at this point in the history
Until we can require 2.0 - next major release?

In theory our gemspec lets you combine any ancient
rest-client with kubeclient but not really,
our tests fail on 1.7.
  • Loading branch information
cben committed Apr 27, 2017
1 parent 745a510 commit e58c4de
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .Gemfile-rest-client-1.8.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Allow travis to test rest-client 1.x.

source 'https://rubygems.org'

# Specify your gem's dependencies in kubeclient.gemspec
gemspec

if dependencies.any? # needed for overriding with recent bundler (1.13 ?)
dependencies.delete('rest-client')
gem 'rest-client', "= 1.8.0"
end
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,17 @@ rvm:
- "2.1"
- "2.2"
- "2.3.0"
gemfile:
- Gemfile
- .Gemfile-rest-client-1.8.rb
sudo: false
cache: bundler
script: bundle exec rake $TASK
env:
- TASK=test
- TASK=rubocop
matrix:
exclude:
# No point running rubocop with old rest-client
- gemfile: .Gemfile-rest-client-1.8.rb
env: TASK=rubocop

0 comments on commit e58c4de

Please sign in to comment.