forked from vmware-archive/rbvmomi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
45 lines (41 loc) · 1.17 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/testtask'
require 'rdoc/task'
require 'yard'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "rbvmomi"
gem.summary = "Ruby interface to the VMware vSphere API"
#gem.description = ""
gem.email = "[email protected]"
gem.homepage = "https://github.com/vmware/rbvmomi"
gem.authors = ["Rich Lane", "Christian Dickmann"]
gem.add_dependency 'nokogiri', '>= 1.4.1'
gem.add_dependency 'builder'
gem.add_dependency 'trollop'
gem.required_ruby_version = '>= 1.8.7'
gem.files.include 'vmodl.db'
gem.files.include '.yardopts'
end
rescue LoadError
puts "Jeweler not available. Install it with: gem install jeweler"
end
Rake::TestTask.new do |t|
t.libs << "test"
t.test_files = FileList['test/test_*.rb']
t.verbose = true
end
YARD::Rake::YardocTask.new
begin
require 'rcov/rcovtask'
desc 'Measures test coverage using rcov'
Rcov::RcovTask.new do |rcov|
rcov.pattern = 'test/test_*.rb'
rcov.output_dir = 'coverage'
rcov.verbose = true
rcov.libs << "test"
rcov.rcov_opts << '--exclude "gems/*"'
end
rescue LoadError
puts "Rcov not available. Install it with: gem install rcov"
end