diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..cec800ace3 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,6 @@ +language: ruby +gemfile: + - test/support/Gemfile +rvm: + - 1.9.3 +script: BUNDLE_GEMFILE=test/support/Gemfile bundle exec rake test foodcritic diff --git a/recipes/_node_windows.rb b/recipes/_node_windows.rb index af596cff2f..2872b051db 100644 --- a/recipes/_node_windows.rb +++ b/recipes/_node_windows.rb @@ -58,7 +58,7 @@ notifies :restart, "service[#{service_name}]", :immediately end -cookbook_file "#{node[:jenkins][:node][:home]}/node_info.groovy" do +cookbook_file "#{node['jenkins']['node']['home']}/node_info.groovy" do source "node_info.groovy" end diff --git a/test/support/Gemfile b/test/support/Gemfile new file mode 100644 index 0000000000..0e5b82ebba --- /dev/null +++ b/test/support/Gemfile @@ -0,0 +1,6 @@ +source "https://rubygems.org" + +gem "rake" +gem "minitest" +gem "chef", ">= 10.12.0" +gem "foodcritic"