blob: f638e409b250f30be671132341b6ad0704030d1e (
plain)
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
36
37
38
39
40
41
|
require 'rubygems'
require 'cucumber/rake/task'
gems = %w[chef chef-server]
desc "Build the chef gems"
task :gem do
gems.each do |dir|
Dir.chdir(dir) { sh "rake package" }
end
end
desc "Install the chef gems"
task :install do
gems.each do |dir|
Dir.chdir(dir) { sh "rake install" }
end
end
desc "Run the rspec tests"
task :spec do
gems.each do |dir|
Dir.chdir(dir) { sh "rake spec" }
end
end
namespace :dev do
desc "Install a Devel instance of Chef with the example-repository"
task :install do
gems.each do |dir|
Dir.chdir(dir) { sh "rake install" }
end
Dir.chdir("example-repository") { sh("rake install") }
end
end
Cucumber::Rake::Task.new(:features) do |t|
t.step_pattern = 'features/steps/**/*.rb'
supportdir = 'features/support'
t.cucumber_opts = "--format pretty -r #{supportdir}"
end
|