forked from pivotal-sprout/sprout-git
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
28 lines (22 loc) · 584 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
require 'rake'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
desc 'Runs foodcritic, rubocop, and spec:unit'
task default: %w(foodcritic rubocop spec:unit)
desc 'Runs all of default and spec:integration'
task ci: %w(default spec:integration)
desc 'Run foodcritic'
task :foodcritic do
sh 'foodcritic . -f any'
end
Rubocop::RakeTask.new
namespace :spec do
desc 'Run unit specs (ChefSpec)'
task :unit do
sh 'rspec spec/unit'
end
desc 'Run integration specs (Will actually execute recipe!)'
task :integration do
sh 'rspec spec/integration'
end
end