[DRE-commits] [ruby-minitest-around] 02/02: Upstream update

Balasankar C balasankarc-guest at moszumanska.debian.org
Fri Mar 6 14:17:15 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-minitest-around.

commit bd25e110c9e948116fb9143ba15d07ca8c800f87
Author: Balasankar C <balasankarc at autistici.org>
Date:   Fri Mar 6 19:45:43 2015 +0530

    Upstream update
---
 debian/changelog       |  7 +++++++
 debian/patches/bundler |  5 ++++-
 debian/ruby-tests.rake | 16 ++++++++++++++--
 3 files changed, 25 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 1e44ece..81d0746 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+ruby-minitest-around (0.3.1-1) unstable; urgency=medium
+
+  * Upstream update
+  * Mimicked rakefile for running tests
+
+ -- Balasankar C <balasankarc at autistici.org>  Wed, 04 Mar 2015 21:41:25 +0530
+
 ruby-minitest-around (0.3.0-1) unstable; urgency=medium
 
   * Initial release (Closes: #775829)
diff --git a/debian/patches/bundler b/debian/patches/bundler
index 718f873..63e108d 100644
--- a/debian/patches/bundler
+++ b/debian/patches/bundler
@@ -12,7 +12,10 @@ Last-Update: <YYYY-MM-DD, last update of the meta-information, optional>
 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
 --- a/test/helper.rb
 +++ b/test/helper.rb
-@@ -1,3 +1,2 @@
+@@ -3,6 +3,5 @@
+   CodeClimate::TestReporter.start
+ end
+ 
 -require 'bundler/setup'
  require 'tempfile'
  require 'minitest/autorun'
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
index d81d0e0..3a14eb5 100644
--- a/debian/ruby-tests.rake
+++ b/debian/ruby-tests.rake
@@ -1,5 +1,17 @@
 require 'gem2deb/rake/testtask'
-Gem2Deb::Rake::TestTask.new do |t|
-  t.test_files = FileList['test/*_spec.rb'] + FileList['test/*_test.rb']
+
+TEST_FILES = FileList.new('test/*_{test,spec}.rb')
+
+desc "Run all tests"
+task :test do
+  TEST_FILES.each do |test_file|
+    sh "bundle", "exec", "rake", "test:isolated", "TEST=#{test_file}"
+  end
 end
 
+require 'rake/testtask'
+Gem2Deb::Rake::TestTask.new do |test|
+  test.test_files = TEST_FILES
+  test.libs << 'test'
+  test.verbose = true
+end

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-minitest-around.git



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