forked from mainmatter/excellent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
39 lines (34 loc) · 1.06 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
require 'rake'
require 'rake/rdoctask'
require 'spec/rake/spectask'
require 'simplabs/excellent/rake'
desc 'Default: run specs.'
task :default => :spec
desc 'Run the specs on the CI server.'
Spec::Rake::SpecTask.new(:ci) do |t|
t.spec_opts << '--format=specdoc'
t.spec_files = FileList['spec/**/*_spec.rb']
end
desc 'Run the specs.'
Spec::Rake::SpecTask.new(:spec) do |t|
t.spec_opts << '--color'
t.spec_opts << '--format=html:doc/spec.html'
t.spec_opts << '--format=specdoc'
t.rcov_opts << '--exclude "gems/*,spec/*,init.rb"'
t.rcov = true
t.rcov_dir = 'doc/coverage'
t.spec_files = FileList['spec/**/*_spec.rb']
end
desc 'Generate documentation for the Excellent gem.'
Rake::RDocTask.new(:rdoc) do |t|
t.rdoc_dir = 'doc'
t.title = 'Excellent'
t.options << '--line-numbers' << '--inline-source'
t.rdoc_files.include('README.rdoc')
t.rdoc_files.include('lib/**/*.rb')
end
desc 'Analyse the Excellent source with itself.'
Simplabs::Excellent::Rake::ExcellentTask.new(:excellent) do |t|
t.html = 'doc/excellent.html'
t.paths = ['lib']
end