forked from nyarly/rspec-steps
/
Rakefile
41 lines (36 loc) · 1009 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
40
41
require 'corundum/tasklibs'
#require 'mattock/yard_extensions'
module Corundum
register_project(__FILE__)
tk = Toolkit.new do |tk|
tk.file_lists.project = [__FILE__]
tk.file_lists.test << FileList["spec2/**/*.rb"]
tk.file_lists.test << FileList["spec3/**/*.rb"]
end
tk.in_namespace do
GemspecFiles.new(tk)
%w{debug profanity racism ableism sexism issues}.each do |type|
QuestionableContent.new(tk) do |qc|
qc.type = type
end
end
rspec = RSpec.new(tk) do |rspec|
if ENV["TARGET_RSPEC"]=="3"
rspec.rspec_opts << "-O rspec3.conf"
rspec.files_to_run = "spec3"
else
rspec.rspec_opts << "-O rspec2.conf"
rspec.files_to_run = "spec2"
end
end
cov = SimpleCov.new(tk, rspec) do |cov|
cov.threshold = 75
end
gem = GemBuilding.new(tk)
cutter = GemCutter.new(tk,gem)
vc = Git.new(tk) do |vc|
vc.branch = "master"
end
end
end
task :default => [:release, :publish_docs]