Commit e3ebbf12 authored by Tim Smith's avatar Tim Smith
Browse files

Cookstyle fixes


Signed-off-by: default avatarTim Smith <tsmith@chef.io>
parent 97b99675
sudo: required
dist: trusty
# install the pre-release chef-dk. Use chef-stable-precise to install the stable release
# install the pre-release chef-dk. Use chef-stable-trusty to install the stable release
addons:
apt:
sources:
......
......@@ -11,7 +11,7 @@ namespace :style do
desc 'Run Ruby style checks'
RuboCop::RakeTask.new(:ruby)
rescue LoadError => e
puts ">>> Gem load error: #{e}, omitting style:ruby" unless ENV['CI']
puts ">>> Gem load error: #{e}, omitting #{task.name}" unless ENV['CI']
end
begin
......@@ -21,11 +21,11 @@ namespace :style do
FoodCritic::Rake::LintTask.new(:chef) do |t|
t.options = {
fail_tags: ['any'],
progress: true
progress: true,
}
end
rescue LoadError
puts ">>> Gem load error: #{e}, omitting style:chef" unless ENV['CI']
rescue LoadError => e
puts ">>> Gem load error: #{e}, omitting #{task.name}" unless ENV['CI']
end
end
......@@ -39,7 +39,7 @@ begin
desc 'Run ChefSpec examples'
RSpec::Core::RakeTask.new(:spec)
rescue LoadError => e
puts ">>> Gem load error: #{e}, omitting spec" unless ENV['CI']
puts ">>> Gem load error: #{e}, omitting #{task.name}" unless ENV['CI']
end
# Integration tests. Kitchen.ci
......@@ -50,7 +50,7 @@ namespace :integration do
desc 'Run kitchen integration tests'
Kitchen::RakeTasks.new
rescue StandardError => e
puts ">>> Kitchen error: #{e}, omitting #{task.name}" unless ENV['CI']
puts ">>> Gem load error: #{e}, omitting #{task.name}" unless ENV['CI']
end
end
......
#
# Author:: Joshua Timberman <joshua@chef.io>
# Cookbook:: erlang
# Attributes:: default
#
# Copyright:: 2012-2016, Chef Software, Inc. <legal@chef.io>
#
# Licensed under the Apache License, Version 2.0 (the "License");
......
......@@ -23,5 +23,4 @@ end
source_url 'https://github.com/chef-cookbooks/erlang'
issues_url 'https://github.com/chef-cookbooks/erlang/issues'
chef_version '>= 12.1'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment