forked from chef/omnibus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
35 lines (30 loc) · 801 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
30
31
32
33
34
35
require "bundler/gem_tasks"
require "rspec/core/rake_task"
[:unit, :functional].each do |type|
RSpec::Core::RakeTask.new(type) do |t|
t.pattern = "spec/#{type}/**/*_spec.rb"
t.rspec_opts = [].tap do |a|
a.push("--color")
a.push("--format progress")
end.join(" ")
end
end
require "cucumber/rake/task"
Cucumber::Rake::Task.new(:acceptance) do |t|
t.cucumber_opts = [].tap do |a|
a.push("--color")
a.push("--format progress")
a.push("--strict")
end.join(" ")
end
require "chefstyle"
require "rubocop/rake_task"
desc " Run ChefStyle"
RuboCop::RakeTask.new(:chefstyle) do |task|
task.options << "--display-cop-names"
end
namespace :travis do
desc "Run tests on Travis"
task ci: %w{chefstyle unit functional acceptance}
end
task default: %w{travis:ci}