Work around strange bundler failures on Ruby 2.3

We should be excluding the integration group but it's trying to install berkshelf no matter what. 🤷

Signed-off-by: Tim Smith <tsmith@chef.io>
This commit is contained in:
Tim Smith 2019-02-13 22:59:18 -08:00
parent ce5b7d8942
commit 2fe299c4f8
2 changed files with 11 additions and 8 deletions

View file

@ -6,6 +6,7 @@ cache: bundler
dist: xenial
services:
- docker
bundler_args: "--without integration tools maintenance deploy"
before_install:
- gem update --system
- gem --version
@ -13,20 +14,20 @@ before_install:
matrix:
include:
- rvm: 2.3.8
bundler_args: "--without integration tools maintenance deploy"
env: UNIT_23=1
env: UNIT_TESTS_23=1
- rvm: 2.4.5
bundler_args: "--without integration tools maintenance deploy"
env: UNIT_24=1
env: UNIT_TESTS_24=1
- rvm: 2.5.3
bundler_args: "--without integration tools maintenance deploy"
env: UNIT_25=1
env: UNIT_TESTS_25=1
#- rvm: 2.6.1 # this needs a few fixes to get enabled
# bundler_args: "--without integration tools maintenance deploy"
# env: LINT_AND_TEST_26: 1
# env: UNIT_TESTS_26=1
- rvm: 2.4.5
script: bundle exec rake $SUITE
env: SUITE="test:functional"
- rvm: 2.5.3
script: bundle exec rake $SUITE
env: SUITE="test:functional"
- rvm: 2.5.3
script: bundle exec rake $SUITE
bundler_args: "--without tools maintenance deploy"

View file

@ -22,7 +22,9 @@ group :test do
end
group :integration do
gem 'berkshelf', '~> 7'
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.4')
gem 'berkshelf', '~> 7'
end
gem 'test-kitchen', '>= 1.24'
gem 'kitchen-vagrant'
# we need winrm v2 support >= 0.15.1