Skip to content

Commit

Permalink
Add Chefstyle to Rake and Gemspec
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Smith <tsmith@chef.io>
  • Loading branch information
tas50 authored and Thom May committed Oct 7, 2016
1 parent 120b124 commit ad54419
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Rakefile
Expand Up @@ -3,9 +3,14 @@ require 'rspec/core/rake_task'

Bundler::GemHelper.install_tasks

require "chefstyle"
require "rubocop/rake_task"
desc "Run Ruby style checks"
RuboCop::RakeTask.new(:style)

desc "Run all specs in spec directory"
RSpec::Core::RakeTask.new(:spec) do |t|
t.pattern = FileList['spec/**/*_spec.rb']
end

task default: :spec
task default: [:style, :spec]
1 change: 1 addition & 0 deletions mixlib-shellout.gemspec
Expand Up @@ -15,6 +15,7 @@ Gem::Specification.new do |s|
s.required_ruby_version = ">= 2.2"

s.add_development_dependency "rspec", "~> 3.0"
s.add_development_dependency "chefstyle", "= 0.4.0"

s.bindir = "bin"
s.executables = []
Expand Down

0 comments on commit ad54419

Please sign in to comment.