mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
Conditionally include a kitchen group in the gemfile for ruby 2.7+
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
parent
0b4a9a397b
commit
ca14b2a901
1 changed files with 13 additions and 0 deletions
13
Gemfile
13
Gemfile
|
@ -48,3 +48,16 @@ end
|
|||
group :deploy do
|
||||
gem "inquirer"
|
||||
end
|
||||
|
||||
# Only include Test Kitchen support if we are on Ruby 2.7 or higher
|
||||
# as chef-zero support requires Ruby 2.6
|
||||
# See https://github.com/inspec/inspec/pull/5341
|
||||
if Gem.ruby_version >= Gem::Version.new("2.7.0")
|
||||
group :kitchen do
|
||||
gem "berkshelf"
|
||||
gem "test-kitchen", ">= 2.8"
|
||||
gem "kitchen-inspec", ">= 2.0"
|
||||
gem "kitchen-dokken", ">= 2.11"
|
||||
gem "git"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue