forked from mizzy/serverspec
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
26 lines (20 loc) · 713 Bytes
/
Rakefile
File metadata and controls
26 lines (20 loc) · 713 Bytes
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
require "bundler/gem_tasks"
require 'rspec/core/rake_task'
task :spec => 'spec:all'
namespace :spec do
oses = %w( darwin debian gentoo redhat aix solaris solaris10 solaris11 smartos windows freebsd)
task :all => [ oses.map {|os| "spec:#{os}" }, :helpers, :exec, :ssh, :cmd, :winrm, :powershell ].flatten
oses.each do |os|
RSpec::Core::RakeTask.new(os.to_sym) do |t|
t.pattern = "spec/#{os}/*_spec.rb"
end
end
RSpec::Core::RakeTask.new(:helpers) do |t|
t.pattern = "spec/helpers/*_spec.rb"
end
[:exec, :ssh, :cmd, :winrm, :powershell].each do |backend|
RSpec::Core::RakeTask.new(backend) do |t|
t.pattern = "spec/backend/#{backend.to_s}/*_spec.rb"
end
end
end