Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 41 lines (34 sloc) 1.397 kB
f30cd1b @nicksieger - first version of junit report formatter; should be able to be
nicksieger authored
1 require 'spec/rake/spectask'
bfdcd21 @nicksieger - Prepare for 1.0 release; last set of changes in current svn location
nicksieger authored
2
126c307 @nicksieger - Prepping 1.2.1 release
nicksieger authored
3 MANIFEST = FileList["History.txt", "Manifest.txt", "README.txt", "LICENSE.txt", "Rakefile",
35308f1 @nicksieger Move stub.rake to top directory, and update release notes and documen…
nicksieger authored
4 "*.rake", "lib/**/*.rb", "spec/**/*.rb", "tasks/**/*.rake"]
bfdcd21 @nicksieger - Prepare for 1.0 release; last set of changes in current svn location
nicksieger authored
5
8a2ce16 @nicksieger Prepare for 1.3.2 release
nicksieger authored
6 begin
7 require 'hoe'
f4b7a3e @nicksieger Prep for 1.3.4 release; RSpec compatibility fix
nicksieger authored
8 hoe = Hoe.new("ci_reporter", "1.3.4") do |p|
8a2ce16 @nicksieger Prepare for 1.3.2 release
nicksieger authored
9 p.rubyforge_name = "caldersphere"
10 p.url = "http://caldersphere.rubyforge.org/ci_reporter"
11 p.author = "Nick Sieger"
12 p.email = "nick@nicksieger.com"
13 p.summary = "CI::Reporter allows you to generate reams of XML for use with continuous integration systems."
14 p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
15 p.description = p.paragraphs_of('README.txt', 0...1).join("\n\n")
16 p.extra_deps.reject!{|d| d.first == "hoe"}
17 p.test_globs = ["spec/**/*_spec.rb"]
18 end
19 hoe.spec.files = MANIFEST
20 hoe.spec.dependencies.delete_if { |dep| dep.name == "hoe" }
21 rescue LoadError
22 puts "You really need Hoe installed to be able to package this gem"
23 end
bfdcd21 @nicksieger - Prepare for 1.0 release; last set of changes in current svn location
nicksieger authored
24
25 # Hoe insists on setting task :default => :test
26 # !@#$ no easy way to empty the default list of prerequisites
27 Rake::Task['default'].send :instance_variable_set, "@prerequisites", FileList[]
f30cd1b @nicksieger - first version of junit report formatter; should be able to be
nicksieger authored
28
29 task :default => :spec
30
551dcd3 @nicksieger - add spec for attributes that need to be escaped
nicksieger authored
31 Spec::Rake::SpecTask.new do |t|
68aca7c @nicksieger Preparing for 1.3 release
nicksieger authored
32 t.spec_opts ||= []
33 t.spec_opts << "--diff" << "unified"
bfdcd21 @nicksieger - Prepare for 1.0 release; last set of changes in current svn location
nicksieger authored
34 end
35
36 # Automated manifest
37 task :manifest do
38 File.open("Manifest.txt", "w") {|f| MANIFEST.each {|n| f << "#{n}\n"} }
39 end
40
41 task :package => :manifest
Something went wrong with that request. Please try again.