Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #231 from tmatilai/separate-gemfiles-for-travis
Browse files Browse the repository at this point in the history
Use separate Gemfiles for Travis tests
  • Loading branch information
tmatilai committed Apr 17, 2013
2 parents ae6459f + 5d1e127 commit 2e4adde
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
/test/support/knife-solo.pem
/test/support/kitchens
/Gemfile.lock
/test/gemfiles/*.lock
11 changes: 4 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
language: ruby
rvm:
- 2.0.0
- 1.9.3
env:
- CHEF_VERSION=
- CHEF_VERSION="~> 10"
matrix:
include:
- rvm: 2.0.0
env: CHEF_VERSION=
gemfile:
- test/gemfiles/Gemfile.chef-11
- test/gemfiles/Gemfile.chef-10
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
source 'https://rubygems.org'

gemspec
2 changes: 2 additions & 0 deletions Manifest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ lib/knife-solo/ssh_command.rb
lib/knife-solo/tools.rb
test/bootstraps_test.rb
test/deprecated_command_test.rb
test/gemfiles/Gemfile.chef-10
test/gemfiles/Gemfile.chef-11
test/gitignore_test.rb
test/integration/amazon_linux_2012_09_bootstrap_test.rb
test/integration/cases/apache2_bootstrap.rb
Expand Down
7 changes: 1 addition & 6 deletions knife-solo.gemspec
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
require File.join(File.dirname(__FILE__), 'lib', 'knife-solo', 'info')

chef_version = ['>= 10.12']
unless ENV['CHEF_VERSION'].to_s.empty?
chef_version = Gem::Requirement.new(ENV['CHEF_VERSION'])
end

Gem::Specification.new do |s|
s.name = 'knife-solo'
s.version = KnifeSolo.version
Expand Down Expand Up @@ -32,7 +27,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rake'
s.add_development_dependency 'rdoc'

s.add_dependency 'chef', chef_version
s.add_dependency 'chef', '>= 10.12'
s.add_dependency 'net-ssh', '>= 2.2.2', '< 3.0'
s.add_dependency 'erubis', '~> 2.7.0'
end
5 changes: 5 additions & 0 deletions test/gemfiles/Gemfile.chef-10
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
source 'https://rubygems.org'

gemspec :path => '../..'

gem 'chef', '~> 10'
5 changes: 5 additions & 0 deletions test/gemfiles/Gemfile.chef-11
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
source 'https://rubygems.org'

gemspec :path => '../..'

gem 'chef', '~> 11'

0 comments on commit 2e4adde

Please sign in to comment.