12
Rakefile
12
Rakefile
@@ -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
|
||||
@@ -24,8 +24,8 @@ namespace :style do
|
||||
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
|
||||
@@ -49,8 +49,8 @@ namespace :integration do
|
||||
|
||||
desc 'Run kitchen integration tests'
|
||||
Kitchen::RakeTasks.new
|
||||
rescue StandardError => e
|
||||
puts ">>> Kitchen error: #{e}, omitting #{task.name}" unless ENV['CI']
|
||||
rescue LoadError, StandardError => e
|
||||
puts ">>> Gem load error: #{e}, omitting #{task.name}" unless ENV['CI']
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user