[DRE-commits] [ruby-launchy] 07/13: Patch to comment out coverage tasks
Gioele Barabucci
gioele-guest at alioth.debian.org
Sat Oct 5 13:43:21 UTC 2013
This is an automated email from the git hooks/post-receive script.
gioele-guest pushed a commit to branch master
in repository ruby-launchy.
commit b001b9e9168e38f0b78da752ef3d576ea6a88459
Author: Gioele Barabucci <gioele at svario.it>
Date: Sat Oct 5 12:04:32 2013 +0000
Patch to comment out coverage tasks
---
.../patches/0002-Comment-out-coverage-tasks.patch | 71 ++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 72 insertions(+)
diff --git a/debian/patches/0002-Comment-out-coverage-tasks.patch b/debian/patches/0002-Comment-out-coverage-tasks.patch
new file mode 100644
index 0000000..031c6c6
--- /dev/null
+++ b/debian/patches/0002-Comment-out-coverage-tasks.patch
@@ -0,0 +1,71 @@
+From: Gioele Barabucci <gioele at svario.it>
+Date: Sat, 5 Oct 2013 12:03:55 +0000
+Subject: Comment out coverage tasks
+
+---
+ tasks/default.rake | 52 ++++++++++++++++++++++++++--------------------------
+ 1 file changed, 26 insertions(+), 26 deletions(-)
+
+diff --git a/tasks/default.rake b/tasks/default.rake
+index 66e57ce..d735503 100644
+--- a/tasks/default.rake
++++ b/tasks/default.rake
+@@ -87,32 +87,32 @@ end
+ # Coverage - optional code coverage, rcov for 1.8 and simplecov for 1.9, so
+ # for the moment only rcov is listed.
+ #------------------------------------------------------------------------------
+-if RUBY_VERSION < "1.9.0"
+- begin
+- require 'rcov/rcovtask'
+- Rcov::RcovTask.new( 'coverage' ) do |t|
+- t.libs << 'spec'
+- t.pattern = 'spec/**/*_spec.rb'
+- t.verbose = true
+- t.rcov_opts << "-x ^/" # remove all the global files
+- t.rcov_opts << "--sort coverage" # so we see the worst files at the top
+- end
+- rescue LoadError
+- This.task_warning( 'rcov' )
+- end
+-else
+- begin
+- require 'simplecov'
+- desc 'Run tests with code coverage'
+- task :coverage do
+- ENV['COVERAGE'] = 'true'
+- Rake::Task[:test].execute
+- end
+- CLOBBER << FileList["coverage"]
+- rescue LoadError
+- This.task_warning( 'simplecov' )
+- end
+-end
++#if RUBY_VERSION < "1.9.0"
++# begin
++# require 'rcov/rcovtask'
++# Rcov::RcovTask.new( 'coverage' ) do |t|
++# t.libs << 'spec'
++# t.pattern = 'spec/**/*_spec.rb'
++# t.verbose = true
++# t.rcov_opts << "-x ^/" # remove all the global files
++# t.rcov_opts << "--sort coverage" # so we see the worst files at the top
++# end
++# rescue LoadError
++# This.task_warning( 'rcov' )
++# end
++#else
++# begin
++# require 'simplecov'
++# desc 'Run tests with code coverage'
++# task :coverage do
++# ENV['COVERAGE'] = 'true'
++# Rake::Task[:test].execute
++# end
++# CLOBBER << FileList["coverage"]
++# rescue LoadError
++# This.task_warning( 'simplecov' )
++# end
++#end
+
+ #------------------------------------------------------------------------------
+ # Manifest - We want an explicit list of thos files that are to be packaged in
diff --git a/debian/patches/series b/debian/patches/series
index b75b1d5..fbd7dd4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
0001-Comment-out-RDoc-generation-task.patch
+0002-Comment-out-coverage-tasks.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-launchy.git
More information about the Pkg-ruby-extras-commits
mailing list