Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.

Commit

Permalink
Update test harness.
Browse files Browse the repository at this point in the history
  • Loading branch information
coderanger committed Apr 24, 2017
1 parent f5fdb9e commit 24e1b89
Show file tree
Hide file tree
Showing 25 changed files with 358 additions and 238 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
Berksfile.lock
Gemfile.lock
test/gemfiles/*.lock
.kitchen/
.kitchen.local.yml
test/docker/
test/ec2/
coverage/
pkg/
.yardoc/
doc/

18 changes: 16 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,22 @@ cache: bundler
language: ruby
env:
global: []
before_install: gem install bundler
bundler_args: '--binstubs=$PWD/bin --jobs 3 --retry 3'
before_install:
- 'if [[ $BUNDLE_GEMFILE == *master.gemfile ]]; then gem update --system; fi'
- gem --version
- gem install bundler
- bundle --version
- 'bundle config --local path ${BUNDLE_PATH:-$(dirname $BUNDLE_GEMFILE)/vendor/bundle}'
- bundle config --local bin $PWD/bin
install: bundle update --jobs=3 --retry=3
script:
- ./bin/rake travis
matrix:
include:
- rvm: 2.3.1
gemfile: test/gemfiles/chef-12.gemfile
- rvm: 2.4.1
gemfile: test/gemfiles/chef-13.gemfile
- rvm: 2.1.4
gemfile: test/gemfiles/chef-12.1.gemfile
- rvm: 2.1.4
Expand Down Expand Up @@ -46,4 +54,10 @@ matrix:
- rvm: 2.3.1
gemfile: test/gemfiles/chef-12.17.gemfile
- rvm: 2.3.1
gemfile: test/gemfiles/chef-12.18.gemfile
- rvm: 2.3.1
gemfile: test/gemfiles/chef-12.19.gemfile
- rvm: 2.4.1
gemfile: test/gemfiles/chef-13.0.gemfile
- rvm: 2.4.1
gemfile: test/gemfiles/master.gemfile
7 changes: 7 additions & 0 deletions .yardopts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
--plugin classmethods
--embed-mixin ClassMethods
--hide-api private
--markup markdown
--hide-void-return
--tag provides:Provides
--tag action:Actions
7 changes: 7 additions & 0 deletions .yo-rc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"generator-poise": {
"created": true,
"name": "poise-languages",
"cookbookName": "auto"
}
}
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def dev_gem(name, path: File.join('..', name), github: nil)
if File.exist?(path)
gem name, path: path
elsif github
gem name, github: github
gem name, git: "https://gitub.com/#{github}.git"
end
end

Expand Down
403 changes: 201 additions & 202 deletions LICENSE

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions test/gemfiles/chef-12.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
eval_gemfile File.expand_path('../../../Gemfile', __FILE__)

gem 'chef', '~> 12.1.2'
gem 'rack', '< 2'
gem 'foodcritic', '< 8'
gem 'chefspec', '< 6'
gem 'fauxhai', '<= 3.9.0'
gem 'foodcritic', '< 8'
gem 'rack', '< 2'
5 changes: 3 additions & 2 deletions test/gemfiles/chef-12.10.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
eval_gemfile File.expand_path('../../../Gemfile', __FILE__)

gem 'chef', '~> 12.10.24'
gem 'rack', '< 2'
gem 'foodcritic', '< 8'
gem 'chefspec', '< 6'
gem 'fauxhai', '<= 3.9.0'
gem 'foodcritic', '< 8'
gem 'rack', '< 2'
5 changes: 3 additions & 2 deletions test/gemfiles/chef-12.11.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
eval_gemfile File.expand_path('../../../Gemfile', __FILE__)

gem 'chef', '~> 12.11.18'
gem 'rack', '< 2'
gem 'foodcritic', '< 8'
gem 'chefspec', '< 6'
gem 'fauxhai', '<= 3.9.0'
gem 'foodcritic', '< 8'
gem 'rack', '< 2'
3 changes: 2 additions & 1 deletion test/gemfiles/chef-12.12.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
eval_gemfile File.expand_path('../../../Gemfile', __FILE__)

gem 'chef', '~> 12.12.15'
gem 'foodcritic', '< 8'
gem 'chefspec', '< 6'
gem 'fauxhai', '<= 3.9.0'
gem 'foodcritic', '< 8'
3 changes: 2 additions & 1 deletion test/gemfiles/chef-12.13.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
eval_gemfile File.expand_path('../../../Gemfile', __FILE__)

gem 'chef', '~> 12.13.37'
gem 'foodcritic', '< 8'
gem 'chefspec', '< 6'
gem 'fauxhai', '<= 3.9.0'
gem 'foodcritic', '< 8'
19 changes: 19 additions & 0 deletions test/gemfiles/chef-12.18.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#
# Copyright 2017, Noah Kantrowitz
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

eval_gemfile File.expand_path('../../../Gemfile', __FILE__)

gem 'chef', '~> 12.18.31'
19 changes: 19 additions & 0 deletions test/gemfiles/chef-12.19.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#
# Copyright 2017, Noah Kantrowitz
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

eval_gemfile File.expand_path('../../../Gemfile', __FILE__)

gem 'chef', '~> 12.19.36'
5 changes: 3 additions & 2 deletions test/gemfiles/chef-12.2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
eval_gemfile File.expand_path('../../../Gemfile', __FILE__)

gem 'chef', '~> 12.2.1'
gem 'rack', '< 2'
gem 'foodcritic', '< 8'
gem 'chefspec', '< 6'
gem 'fauxhai', '<= 3.9.0'
gem 'foodcritic', '< 8'
gem 'rack', '< 2'
5 changes: 3 additions & 2 deletions test/gemfiles/chef-12.3.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
eval_gemfile File.expand_path('../../../Gemfile', __FILE__)

gem 'chef', '~> 12.3.0'
gem 'rack', '< 2'
gem 'foodcritic', '< 8'
gem 'chefspec', '< 6'
gem 'fauxhai', '<= 3.9.0'
gem 'foodcritic', '< 8'
gem 'rack', '< 2'
5 changes: 3 additions & 2 deletions test/gemfiles/chef-12.4.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
eval_gemfile File.expand_path('../../../Gemfile', __FILE__)

gem 'chef', '~> 12.4.3'
gem 'rack', '< 2'
gem 'foodcritic', '< 8'
gem 'chefspec', '< 6'
gem 'fauxhai', '<= 3.9.0'
gem 'foodcritic', '< 8'
gem 'gh', '0.14.0'
gem 'rack', '< 2'
5 changes: 3 additions & 2 deletions test/gemfiles/chef-12.5.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
eval_gemfile File.expand_path('../../../Gemfile', __FILE__)

gem 'chef', '~> 12.5.1'
gem 'rack', '< 2'
gem 'foodcritic', '< 8'
gem 'chefspec', '< 6'
gem 'fauxhai', '<= 3.9.0'
gem 'foodcritic', '< 8'
gem 'rack', '< 2'
5 changes: 3 additions & 2 deletions test/gemfiles/chef-12.6.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
eval_gemfile File.expand_path('../../../Gemfile', __FILE__)

gem 'chef', '~> 12.6.0'
gem 'rack', '< 2'
gem 'foodcritic', '< 8'
gem 'chefspec', '< 6'
gem 'fauxhai', '<= 3.9.0'
gem 'foodcritic', '< 8'
gem 'rack', '< 2'
5 changes: 3 additions & 2 deletions test/gemfiles/chef-12.7.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
eval_gemfile File.expand_path('../../../Gemfile', __FILE__)

gem 'chef', '~> 12.7.2'
gem 'rack', '< 2'
gem 'foodcritic', '< 8'
gem 'chefspec', '< 6'
gem 'fauxhai', '<= 3.9.0'
gem 'foodcritic', '< 8'
gem 'rack', '< 2'
5 changes: 3 additions & 2 deletions test/gemfiles/chef-12.8.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
eval_gemfile File.expand_path('../../../Gemfile', __FILE__)

gem 'chef', '~> 12.8.1'
gem 'rack', '< 2'
gem 'foodcritic', '< 8'
gem 'chefspec', '< 6'
gem 'fauxhai', '<= 3.9.0'
gem 'foodcritic', '< 8'
gem 'rack', '< 2'
5 changes: 3 additions & 2 deletions test/gemfiles/chef-12.9.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
eval_gemfile File.expand_path('../../../Gemfile', __FILE__)

gem 'chef', '~> 12.9.41'
gem 'rack', '< 2'
gem 'foodcritic', '< 8'
gem 'chefspec', '< 6'
gem 'fauxhai', '<= 3.9.0'
gem 'foodcritic', '< 8'
gem 'rack', '< 2'
2 changes: 1 addition & 1 deletion test/gemfiles/chef-12.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@

eval_gemfile File.expand_path('../../../Gemfile', __FILE__)

gem 'chef', '~> 12.17'
gem 'chef', '~> 12.19'
19 changes: 19 additions & 0 deletions test/gemfiles/chef-13.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#
# Copyright 2017, Noah Kantrowitz
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

eval_gemfile File.expand_path('../../../Gemfile', __FILE__)

gem 'chef', '~> 13.0.118'
19 changes: 19 additions & 0 deletions test/gemfiles/chef-13.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#
# Copyright 2017, Noah Kantrowitz
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

eval_gemfile File.expand_path('../../../Gemfile', __FILE__)

gem 'chef', '~> 13.0'
17 changes: 10 additions & 7 deletions test/gemfiles/master.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,13 @@

eval_gemfile File.expand_path('../../../Gemfile', __FILE__)

gem 'chef', github: 'chef/chef'
gem 'halite', github: 'poise/halite'
gem 'ohai', github: 'chef/ohai'
gem 'poise', github: 'poise/poise'
gem 'poise-archive', github: 'poise/poise-archive'
gem 'poise-boiler', github: 'poise/poise-boiler'
gem 'poise-profiler', github: 'poise/poise-profiler'
gem 'chef', git: 'https://github.com/chef/chef.git'
gem 'chefspec', git: 'https://github.com/sethvargo/chefspec.git'
gem 'fauxhai', git: 'https://github.com/customink/fauxhai.git'
gem 'foodcritic', git: 'https://github.com/foodcritic/foodcritic.git'
gem 'halite', git: 'https://github.com/poise/halite.git'
gem 'ohai', git: 'https://github.com/chef/ohai.git'
gem 'poise', git: 'https://github.com/poise/poise.git'
gem 'poise-archive', git: 'https://github.com/poise/poise-archive.git'
gem 'poise-boiler', git: 'https://github.com/poise/poise-boiler.git'
gem 'poise-profiler', git: 'https://github.com/poise/poise-profiler.git'

0 comments on commit 24e1b89

Please sign in to comment.