-
Notifications
You must be signed in to change notification settings - Fork 27
/
Rakefile
34 lines (29 loc) · 780 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
require 'bundler/setup'
require 'bundler/gem_tasks'
require 'bump/tasks'
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.pattern = 'test/**/*_test.rb'
test.verbose = true
end
task :examples do
Dir["examples/*"].each do |e|
command = "ruby -Ilib #{e} fruit"
result = `#{command}`
raise "FAILED: #{command}: #{result}" unless $?.success?
end
end
task :default => [:test, :examples]
require 'rdoc/task'
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "rwordnet #{WordNet::VERSION}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/rwordnet/*.rb')
rdoc.options += ["-SHN","-f","darkfish"]
end
desc "Code coverage detail"
task :simplecov do
ENV['COVERAGE'] = "true"
Rake::Task['test'].execute
end