-
Notifications
You must be signed in to change notification settings - Fork 114
/
Rakefile
68 lines (58 loc) · 1.96 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#--
# Copyright (c) 2006-2014 Nick Sieger <nicksieger@gmail.com>
# See the file LICENSE.txt included with the distribution for
# software license details.
#++
require 'bundler/setup'
begin
require 'hoe'
Hoe.plugin :git
require File.dirname(__FILE__) + '/lib/ci/reporter/version'
hoe = Hoe.spec("ci_reporter") do |p|
p.version = CI::Reporter::VERSION
p.group_name = "caldersphere"
p.readme_file = "README.rdoc"
p.urls = ["https://github.com/nicksieger/ci_reporter"]
p.author = "Nick Sieger"
p.email = "nick@nicksieger.com"
p.readme_file = 'README.rdoc'
p.summary = "CI::Reporter allows you to generate reams of XML for use with continuous integration systems."
p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
p.description = p.paragraphs_of('README.rdoc', 0...1).join("\n\n")
p.extra_rdoc_files += ["README.rdoc"]
p.test_globs = ["spec/**/*_spec.rb"]
p.extra_deps << [ 'builder', '>= 2.1.2' ]
p.extra_dev_deps << [ 'hoe-git', '~> 1.5.0' ]
p.extra_dev_deps << [ 'test-unit', '> 2.4.9' ]
p.extra_dev_deps << [ 'minitest', '~> 2.2.0' ]
p.clean_globs += ["spec/reports", "acceptance/reports"]
p.license 'MIT'
end
hoe.spec.rdoc_options += ["-SHN", "-f", "darkfish"]
task :gemspec do
File.open("#{hoe.name}.gemspec", "w") {|f| f << hoe.spec.to_ruby }
end
rescue LoadError
puts "You really need Hoe installed to be able to package this gem"
end
namespace :generate do
task :clean do
rm_rf "acceptance/reports"
end
deps = [:clean]
['test-unit', 'minitest'].each do |gem|
if Gem.loaded_specs[gem]
load "Rakefile.#{gem}"
deps << "generate:#{gem}"
end
end
task :all => deps
end
task :acceptance => "generate:all"
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:acceptance_spec) do |t|
t.pattern = FileList['acceptance/verification_spec.rb']
t.rspec_opts = "--color"
end
task :acceptance => :acceptance_spec
task :default => :acceptance