Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e512d287c0
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (28 sloc) 0.911 kb
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
Jump to Line
Something went wrong with that request. Please try again.