[DRE-commits] [SCM] ruby-thor.git branch, master, updated. debian/0.15.3-1-19-gedade19
Christian Hofstaedtler
christian at hofstaedtler.name
Tue May 7 16:52:53 UTC 2013
The following commit has been merged in the master branch:
commit c409ab0b6a2e61baab7a2f212df1eb12d5547a25
Author: Christian Hofstaedtler <christian at hofstaedtler.name>
Date: Tue May 7 18:39:48 2013 +0200
Run test suite during build
diff --git a/debian/control b/debian/control
index 54b327b..350db71 100644
--- a/debian/control
+++ b/debian/control
@@ -3,8 +3,7 @@ Section: ruby
Priority: optional
Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
Uploaders: Christian Hofstaedtler <christian at hofstaedtler.name>
-Build-Depends: debhelper (>= 7.0.50~),
- gem2deb (>= 0.3.0~)
+Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), ruby-rspec (>= 2.13.0~), ruby-diff-lcs, bundler
Standards-Version: 3.9.4
Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-thor.git
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-thor.git;a=summary
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b73c9ba
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+tests-disable-coverage
diff --git a/debian/patches/tests-disable-coverage b/debian/patches/tests-disable-coverage
new file mode 100644
index 0000000..ddcbec5
--- /dev/null
+++ b/debian/patches/tests-disable-coverage
@@ -0,0 +1,31 @@
+Index: ruby-thor/spec/helper.rb
+===================================================================
+--- ruby-thor.orig/spec/helper.rb 2013-05-07 17:54:44.000000000 +0200
++++ ruby-thor/spec/helper.rb 2013-05-07 17:56:33.951392230 +0200
+@@ -1,23 +1,15 @@
+ $TESTING=true
+
+-require 'simplecov'
+-require 'coveralls'
+-
+-SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
+- SimpleCov::Formatter::HTMLFormatter,
+- Coveralls::SimpleCov::Formatter
+-]
+-SimpleCov.start
+-
++puts File.join(File.dirname(__FILE__), "..", "lib")
+ $:.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
+ require 'thor'
+ require 'thor/group'
+ require 'stringio'
+
+-require 'rdoc'
++require 'rdoc/rdoc'
+ require 'rspec'
+ require 'diff/lcs' # You need diff/lcs installed to run specs (but not to run Thor).
+-require 'fakeweb' # You need fakeweb installed to run specs (but not to run Thor).
++#require 'fakeweb' # You need fakeweb installed to run specs (but not to run Thor).
+
+ # Set shell to basic
+ $0 = "thor"
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..b0bf936
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,7 @@
+require 'rspec/core/rake_task'
+
+RSpec::Core::RakeTask.new(:spec) do |spec|
+ spec.pattern = './spec/*_spec.rb'
+end
+
+task :default => :spec
--
ruby-thor.git
More information about the Pkg-ruby-extras-commits
mailing list