This repository was archived by the owner on Jun 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
57 lines (51 loc) · 1.79 KB
/
Rakefile
File metadata and controls
57 lines (51 loc) · 1.79 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#require 'rubygems'
#require 'rake'
#require 'echoe'
require 'rspec/core/rake_task'
#require 'rake'
require 'spec/rake/spectask'
# For more information about building a gem, please see
# http://railscasts.com/episodes/135-making-a-gem
# for more info on echoe, see
# http://fauna.github.com/fauna/echoe/files/README.html
#
# To build it locally, please call:
#
# 1. rake manifest <- Create manifest file describing the content to be included into gem
# 2. rake install <- Install the gem locally
# 3.a rake release <- for Ruby Forge projects
# 3.b rake build_gemspec <- for Github (requires the project to be marked as Gem on Github)
#
# When introducing changes to the project, here is what can be done:
# 1. rake manifest
# 2. rake build_gemspec
#
#
#Echoe.new('dmstech-ws-kickstart', '0.0.1') do |p|
# p.description = "Web Services Kickstart Project"
# p.url = "http://github.com/DMSTech/web-services-kickstart"
# p.author = "Open Sky Solutions"
# p.email = "info@openskysolutions.com"
# p.ignore_pattern = ["tmp/*", "script/*"] # not included into Gem
# p.development_dependencies = ["sinatra", "rdf", "rdf-n3", "rdf-json"] # Echoe defaults to adding itself as dev dependency
#end
#
# Load require tasks
#Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext }
desc "Run specs"
task :spec do
RSpec::Core::RakeTask.new(:spec) do |t|
t.pattern = './spec/**/*_spec.rb'
end
end
task :clean do
puts 'Cleaning old coverage.data'
FileUtils.rm('coverage.data') if(File.exists? 'coverage.data')
end
Spec::Rake::SpecTask.new(:rcov) do |spec|
spec.libs << 'lib' << 'spec'
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true
spec.rcov_opts = %w{--exclude spec\/*,gems\/*,ruby\/*,lyber_core\/* --aggregate coverage.data}
end
task :default => [:clean, :rcov]