-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
43 lines (34 loc) · 821 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
35
36
37
38
39
40
41
42
43
require "rake/testtask"
require "rake/gempackagetask"
require "rake/clean"
require 'rake/rdoctask'
CLEAN << "pkg" << "doc" << "coverage" << ".yardoc" << "rdoc"
task :default => :test
Rake::TestTask.new(:test) { |t| t.pattern = "test/**/*_test.rb" }
Rake::GemPackageTask.new(eval(File.read("phonology.gemspec"))) { |pkg| }
begin
require "yard"
YARD::Rake::YardocTask.new do |t|
t.options = ["--output-dir=doc"]
end
rescue LoadError
end
Rake::RDocTask.new do |rd|
rd.rdoc_dir = 'rdoc'
end
begin
require "rcov/rcovtask"
Rcov::RcovTask.new do |r|
r.test_files = FileList["test/**/*_test.rb"]
r.verbose = true
r.rcov_opts << "--exclude gems/*"
end
rescue LoadError
end
begin
require 'reek/rake/task'
Reek::Rake::Task.new do |t|
t.fail_on_error = false
end
rescue LoadError
end