forked from klauern/mantisrb
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
39 lines (31 loc) · 938 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
34
35
36
37
38
39
require 'simplecov'
SimpleCov.minimum_coverage(75)
SimpleCov.start do
add_filter 'spec/'
end
require 'bundler/gem_tasks'
require 'rake/testtask'
require 'rake/clean'
require 'rake'
require 'yard'
CLOBBER.include('pkg')
CLOBBER.include('coverage')
CLOBBER.include('doc')
Rake::TestTask.new do |t|
t.pattern = "spec/*_spec.rb"
end
desc "Run all BDD Specs with MiniTest::Spec"
task :spec do
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/spec'))
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)))
gem 'minitest' # use the gem, it's got more in it than the 1.9 minitest
require 'minitest/autorun'
spec_files = Dir['spec/**/*_spec.rb']
spec_files.each { |f| require f }
end
task :default => [:clobber, :spec, :build]
YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb' ] # optional
t.options= [ '--files', 'LICENSE']
#t.options = ['--any', '--extra', '--opts'] # optional
end