forked from gwdg/rOCCI-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
33 lines (23 loc) · 816 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
33
require 'rubygems/tasks'
task :default => 'test'
desc "Run all tests; includes rspec and coverage reports"
task :test => 'rcov:all'
desc "Run all tests; includes rspec and coverage reports"
task :spec => 'test'
Gem::Tasks.new(:build => {:tar => true, :zip => true}, :sign => {:checksum => true, :pgp => false})
namespace :rcov do
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:rspec) do |t|
ENV['COVERAGE'] = "true"
end
desc "Run rspec to generate aggregated coverage"
task :all do |t|
rm "coverage/coverage.data" if File.exist?("coverage/coverage.data")
Rake::Task['rcov:rspec'].invoke
end
end
require 'yard'
YARD::Rake::YardocTask.new(:yard) do |t|
t.files = ['features/**/*.feature', 'features/**/*.rb']
t.options = ['--any', '--extra', '--opts'] # optional
end