forked from marcoow/reports_as_sparkline
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
32 lines (28 loc) · 911 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
require 'rake'
require 'rake/rdoctask'
require 'spec/rake/spectask'
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 = true
t.rcov_opts << '--exclude "gems/*,spec/*,init.rb"'
t.rcov_dir = 'doc/coverage'
t.spec_files = FileList['spec/**/*_spec.rb']
end
desc 'Generate documentation for the ReportsAsSparkline plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'doc'
rdoc.title = 'ReportsAsSparkline'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end