forked from kangguru/semantic_record
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
29 lines (25 loc) · 822 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
require 'rubygems'
require 'lib/semantic_record'
require 'spec/rake/spectask'
require 'echoe'
Echoe.new('semantic_record', '0.0.5') do |p|
p.description = "use sesame as backend"
p.url = "http://"
p.author = "LB"
p.email = "[email protected]"
p.ignore_pattern = ["coverage/*", "pkg/*"]
p.development_dependencies = []
end
desc "Run all specs"
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList["spec/*_spec.rb"].sort
t.spec_opts = ["--options", "spec/spec.opts"]
end
desc "Run all specs and get coverage statistics"
Spec::Rake::SpecTask.new('coverage') do |t|
t.spec_opts = ["--options", "spec/spec.opts"]
t.spec_files = FileList["spec/*_spec.rb"].sort
t.rcov_opts = ["--exclude", "spec", "--exclude", "gems"]
t.rcov = true
end
task :default => :spec