forked from sunlightlabs/ruby-sunlight
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
35 lines (29 loc) · 851 Bytes
/
Rakefile
File metadata and controls
35 lines (29 loc) · 851 Bytes
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
require 'rubygems'
require 'rake'
require 'rake/rdoctask'
require 'rspec'
require 'rspec/core/rake_task'
require 'rcov/rcovtask'
Version = '0.1.0'
desc "Run specs"
RSpec::Core::RakeTask.new(:spec) do |t|
t.pattern = 'spec/**/*_spec.rb'
t.rspec_opts = ["--colour", "--format", "documentation"]
end
desc 'Performs code coverage via rake rcov'
Rcov::RcovTask.new do |t|
t.test_files = FileList['spec/*_spec.rb']
t.verbose = true
end
desc 'Generate RDoc documentation'
Rake::RDocTask.new(:rdoc) do |rdoc|
files = ['README.textile', 'CHANGES.textile', 'lib/**/*.rb']
rdoc.rdoc_files.add(files)
rdoc.main = "README.textile"
rdoc.title = "sunlight"
rdoc.rdoc_dir = 'doc'
rdoc.options << '--inline-source'
end
desc "Clean files generated by rake tasks"
task :clobber => [:clobber_rdoc, :clobber_rcov]
task :default => [:spec]