forked from pivotal-sprout/sprout-osx-settings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
29 lines (23 loc) · 724 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
require 'rake'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
require 'foodcritic'
desc 'Run foodcritic && rubocop && spec:unit'
task default: %w(foodcritic rubocop spec:unit)
desc 'Run default && spec:integration'
task ci: %w(default spec:integration)
desc 'Run foodcritic'
FoodCritic::Rake::LintTask.new do |t|
t.options[:fail_tags] = ['any', '~FC014', '~FC048']
end
RuboCop::RakeTask.new
namespace :spec do
desc 'Run unit specs (ChefSpec)'
RSpec::Core::RakeTask.new(:unit) do |t|
t.pattern = 'spec/unit/**/*_spec.rb'
end
desc 'Run integration specs (Will actually execute recipe!)'
RSpec::Core::RakeTask.new(:integration) do |t|
t.pattern = 'spec/integration/**/*_spec.rb'
end
end