Skip to content

Commit

Permalink
When in a Travis.CI build for Ruby v1.*, constrain chef to v11 so that
Browse files Browse the repository at this point in the history
we can maintain test coverage of older platform
  • Loading branch information
James FitzGibbon committed Feb 5, 2015
1 parent fcbe147 commit b99f261
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion chef-vault.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,15 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rspec', '~> 3.1'
s.add_development_dependency 'rspec-its', '~> 1.1'
s.add_development_dependency 'aruba', '~> 0.6'
s.add_development_dependency 'chef', '>= 0.10.10'
s.add_development_dependency 'simplecov', '~> 0.9'
s.add_development_dependency 'simplecov-console', '~> 0.2'
# Chef 12 and higher pull in Ohai 8, which needs Ruby v2
# so only in the case of a CI build on ruby v1, we constrain
# chef to 11 or lower so that we can maintain CI test coverage
# of older versions
if ENV.key?('TRAVIS_BUILD') && RUBY_VERSION =~ /^1/
s.add_development_dependency 'chef', '~> 11.18'
else
s.add_development_dependency 'chef', '>= 0.10.10'
end
end

0 comments on commit b99f261

Please sign in to comment.