forked from savonrb/savon
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
45 lines (39 loc) · 1.14 KB
/
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
36
37
38
39
40
41
42
43
44
45
require "rake"
require "spec/rake/spectask"
require "spec/rake/verify_rcov"
require "rake/rdoctask"
task :default => :spec_verify
Spec::Rake::SpecTask.new do |spec|
spec.spec_files = FileList["spec/{savon}/**/*_spec.rb"]
spec.spec_opts << "--color"
spec.libs += ["lib", "spec"]
spec.rcov = true
spec.rcov_dir = "rcov"
end
RCov::VerifyTask.new(:spec_verify => :spec) do |verify|
verify.threshold = 100.0
verify.index_html = "rcov/index.html"
end
desc "Run integration specs using WEBrick"
task :spec_integration do
pid = fork { exec "ruby spec/integration/server.rb" }
sleep 10 # wait until the server is actually ready
begin
task(:run_integration_spec).invoke
ensure
Process.kill "TERM", pid
Process.wait pid
end
end
desc "" # make this task invisible for "rake -T"
Spec::Rake::SpecTask.new(:run_integration_spec) do |spec|
spec.spec_files = FileList["spec/{integration}/**/*_spec.rb"]
spec.spec_opts << "--color"
spec.libs += ["lib", "spec"]
end
Rake::RDocTask.new do |rdoc|
rdoc.title = "Savon"
rdoc.rdoc_dir = "rdoc"
rdoc.rdoc_files.include("lib/**/*.rb")
rdoc.options = ["--line-numbers", "--inline-source"]
end