[DRE-commits] [ruby-delayed-job-active-record] 03/04: Make tests run

Balasankar C balasankarc-guest at moszumanska.debian.org
Mon Jun 29 12:45:29 UTC 2015


This is an automated email from the git hooks/post-receive script.

balasankarc-guest pushed a commit to branch master
in repository ruby-delayed-job-active-record.

commit d37f375d5f7513d63c67a1ce4a10982e6986119e
Author: Balasankar C <balasankarc at autistici.org>
Date:   Mon Jun 29 17:25:44 2015 +0530

    Make tests run
---
 debian/patches/series    |  1 +
 debian/patches/simplecov | 25 +++++++++++++++++++++++++
 debian/rules             | 11 ++++++++---
 3 files changed, 34 insertions(+), 3 deletions(-)

diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..f958273
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+simplecov
diff --git a/debian/patches/simplecov b/debian/patches/simplecov
new file mode 100644
index 0000000..62c2e75
--- /dev/null
+++ b/debian/patches/simplecov
@@ -0,0 +1,25 @@
+Description: Disable simplecov
+ Disable simplecov while running tests.
+Author: Balasankar C <balasankarc at autistici.org>
+Last-Update: 2015-06-29
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/spec/helper.rb
++++ b/spec/helper.rb
+@@ -1,16 +1,3 @@
+-require "simplecov"
+-require "coveralls"
+-
+-SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
+-  SimpleCov::Formatter::HTMLFormatter,
+-  Coveralls::SimpleCov::Formatter
+-]
+-
+-SimpleCov.start do
+-  add_filter "/spec/"
+-  minimum_coverage(73.33)
+-end
+-
+ require "logger"
+ require "rspec"
+ 
diff --git a/debian/rules b/debian/rules
index acfc5fe..3f7f8c8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,13 +6,18 @@
 #
 # Uncomment to ignore some test failures (but the tests will run anyway).
 # Valid values:
-#export DH_RUBY_IGNORE_TESTS=ruby2.1 ruby2.2
+#export DH_RUBY_IGNORE_TESTS=ruby2.1
 #
 # If you need to specify the .gemspec (eg there is more than one)
 #export DH_RUBY_GEMSPEC=gem.gemspec
 #
 # Uncomment to check dependencies during build:
 # export GEM2DEB_TEST_RUNNER = --check-dependencies
-
 %:
-	dh $@ --buildsystem=ruby --with ruby
+	mkdir -p debian/build/locale
+	localedef -f UTF-8 -i en_US debian/build/locale/en_US.UTF-8
+	LOCPATH=$(CURDIR)/debian/build/locale LC_ALL=en_US.UTF-8 dh $@ --buildsystem=ruby --with ruby
+
+override_dh_clean:
+	LOCPATH=$(CURDIR)/debian/build/locale LC_ALL=en_US.UTF-8 dh_clean --buildsystem=ruby
+	rm -rf debian/build/

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-delayed-job-active-record.git



More information about the Pkg-ruby-extras-commits mailing list