[DRE-commits] [ruby-saml] 04/07: enable tests
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Tue Mar 15 19:11:55 UTC 2016
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository ruby-saml.
commit 2f3cdc1a4ae301978e79e577c62f6162d8c16436
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Tue Mar 15 23:36:30 2016 +0530
enable tests
---
debian/changelog | 1 +
debian/control | 3 ++-
debian/patches/remove-bundler.patch | 13 +++++++++++++
debian/patches/remove-simplecov.patch | 19 +++++++++++++++++++
debian/patches/series | 2 ++
debian/ruby-tests.rake | 6 ++++++
6 files changed, 43 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 287f185..62b13f1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
ruby-saml (1.1.2-1) unstable; urgency=medium
* New upstream release
+ * Enable tests
-- Pirate Praveen <praveen at debian.org> Tue, 15 Mar 2016 22:48:54 +0530
diff --git a/debian/control b/debian/control
index d587640..ff3a683 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,8 @@ Uploaders: Pirate Praveen <praveen at debian.org>
Build-Depends: debhelper (>= 9~),
gem2deb,
ruby-nokogiri (>= 1.5.10),
- ruby-uuid (>= 2.3)
+ ruby-uuid (>= 2.3),
+ ruby-timecop
Standards-Version: 3.9.7
Vcs-Git: https://anonscm.debian.org/git/pkg-ruby-extras/ruby-saml.git
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-ruby-extras/ruby-saml.git
diff --git a/debian/patches/remove-bundler.patch b/debian/patches/remove-bundler.patch
new file mode 100644
index 0000000..dc3fcf1
--- /dev/null
+++ b/debian/patches/remove-bundler.patch
@@ -0,0 +1,13 @@
+Index: ruby-saml/test/test_helper.rb
+===================================================================
+--- ruby-saml.orig/test/test_helper.rb
++++ ruby-saml/test/test_helper.rb
+@@ -12,7 +12,7 @@ require 'minitest/autorun'
+ require 'mocha/setup'
+ require 'timecop'
+
+-Bundler.require :default, :test
++#Bundler.require :default, :test
+
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
diff --git a/debian/patches/remove-simplecov.patch b/debian/patches/remove-simplecov.patch
new file mode 100644
index 0000000..3c3cb99
--- /dev/null
+++ b/debian/patches/remove-simplecov.patch
@@ -0,0 +1,19 @@
+Index: ruby-saml/test/test_helper.rb
+===================================================================
+--- ruby-saml.orig/test/test_helper.rb
++++ ruby-saml/test/test_helper.rb
+@@ -1,9 +1,9 @@
+-require 'simplecov'
++#require 'simplecov'
+
+-SimpleCov.start do
+- add_filter "test/"
+- add_filter "lib/onelogin/ruby-saml/logging.rb"
+-end
++#SimpleCov.start do
++# add_filter "test/"
++# add_filter "lib/onelogin/ruby-saml/logging.rb"
++#end
+
+ require 'stringio'
+ require 'rubygems'
diff --git a/debian/patches/series b/debian/patches/series
index b7908ce..acb2b18 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,3 @@
remove-git-from-gemspec.diff
+remove-simplecov.patch
+remove-bundler.patch
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..63f3fd6
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,6 @@
+require 'gem2deb/rake/testtask'
+
+Gem2Deb::Rake::TestTask.new do |t|
+ t.libs = ['test']
+ t.test_files = FileList['test/**/*_test.rb'] + FileList['test/**/test_*.rb']
+end
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-saml.git
More information about the Pkg-ruby-extras-commits
mailing list