Rakefile in google_analytics-1.1.3 vs Rakefile in google_analytics-1.1.5

- old
+ new

@@ -1,9 +1,10 @@ require 'rake' require 'rake/testtask' require 'rake/rdoctask' require 'rake/gempackagetask' +require 'rcov/rcovtask' require 'rubyforge' desc 'Default: run unit tests.' task :default => :test @@ -14,16 +15,22 @@ t.libs << 'lib' t.pattern = 'test/**/*_test.rb' t.verbose = true end +Rcov::RcovTask.new do |t| + t.test_files = FileList["test/**/*_test.rb"] + t.verbose = true + t.rcov_opts = ["-x", "^/"] +end + desc 'Generate documentation for the google_analytics plugin.' Rake::RDocTask.new(:rdoc) do |rdoc| rdoc.rdoc_dir = 'rdoc' - rdoc.title = 'GoogleAnalytics' - rdoc.options << '--line-numbers' << '--inline-source' - rdoc.rdoc_files.include('README.rdoc') + rdoc.title = 'Google Analytics' + rdoc.options << '--line-numbers' << '--inline-source' << '--main' << 'README.rdoc' + rdoc.rdoc_files << 'README.rdoc' << 'CHANGELOG' << 'CREDITS' << 'MIT-LICENSE' rdoc.rdoc_files.include('lib/**/*.rb') end gem_spec = eval(File.read('google_analytics.gemspec')) @@ -36,5 +43,14 @@ task :release => [:clean, :package] do |t| rubyforge = RubyForge.new.configure rubyforge.login rubyforge.add_release gem_spec.rubyforge_project, gem_spec.name, gem_spec.version.to_s, "pkg/#{gem_spec.name}-#{gem_spec.version}.gem" end + +begin + gem 'ci_reporter' + require 'ci/reporter/rake/test_unit' + task :bamboo => "ci:setup:testunit" +rescue LoadError +end + +task :bamboo => [ :package, :test ]