Skip to content

Commit

Permalink
Fix test failures on Ruby 2.5 and add Windows testing
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Smith <tsmith@chef.io>
  • Loading branch information
tas50 committed May 21, 2020
1 parent 0b4d32d commit a3d336e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
12 changes: 10 additions & 2 deletions .expeditor/verify.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ expeditor:
timeout_in_minutes: 30

steps:

- label: run-specs-ruby-2.5
command:
- .expeditor/run_linux_tests.sh rake
Expand All @@ -31,4 +30,13 @@ steps:
expeditor:
executor:
docker:
image: ruby:2.7-buster
image: ruby:2.7-buster
- label: run-specs-windows
command:
- bundle config --local path vendor/bundle
- bundle install --jobs=7 --retry=3 --without docs debug
- bundle exec rake
expeditor:
executor:
docker:
host_os: windows
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ group :test do
gem "rspec-core"
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.6")
gem "chef-zero", "~> 14"
gem "chef", "~> 15"
else
gem "chef", ">= 15.0"
end
gem "rspec-expectations"
gem "rspec-mocks"
gem "rspec_junit_formatter"
gem "fog-core"
gem "chefstyle"
gem "chef", ">= 15.0"
end

0 comments on commit a3d336e

Please sign in to comment.