[DRE-commits] [ruby-redis-rails] 03/03: use rake for tests, remove bundler use

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Tue Jul 7 21:27:55 UTC 2015


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

praveen pushed a commit to branch master
in repository ruby-redis-rails.

commit b27908aa4c440fe81e55886b852f8db461288191
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Wed Jul 8 02:45:47 2015 +0530

    use rake for tests, remove bundler use
---
 debian/patches/remove-bundler.patch | 15 +++++++++++++++
 debian/patches/series               |  1 +
 debian/ruby-test-files.yaml         |  4 ----
 debian/ruby-tests.rake              | 11 +++++++++++
 4 files changed, 27 insertions(+), 4 deletions(-)

diff --git a/debian/patches/remove-bundler.patch b/debian/patches/remove-bundler.patch
new file mode 100644
index 0000000..a64c515
--- /dev/null
+++ b/debian/patches/remove-bundler.patch
@@ -0,0 +1,15 @@
+Description: remove bundler
+ debian specific
+Author: Pirate Praveen <praveen at debian.org>
+Last-Updated: 2015-07-08
+
+Index: ruby-redis-rails-4.0.0/test/test_helper.rb
+===================================================================
+--- ruby-redis-rails-4.0.0.orig/test/test_helper.rb
++++ ruby-redis-rails-4.0.0/test/test_helper.rb
+@@ -1,4 +1,4 @@
+-require 'bundler/setup'
++#require 'bundler/setup'
+ require 'minitest/autorun'
+ require 'mocha/setup'
+ require 'redis-rails'
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..0712931
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+remove-bundler.patch
diff --git a/debian/ruby-test-files.yaml b/debian/ruby-test-files.yaml
deleted file mode 100644
index 6a8c7dc..0000000
--- a/debian/ruby-test-files.yaml
+++ /dev/null
@@ -1,4 +0,0 @@
----
-- test/redis-rails/version_test.rb
-- test/redis_rails_test.rb
-- test/test_helper.rb
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..7687ceb
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,11 @@
+require 'rake/testtask'
+Rake::TestTask.new(:test) do |test|
+# github-linguist, gemoji not in archive
+  test.test_files = FileList["test/**/*.rb"] - (FileList["test/test_helper.rb", "test/html/pipeline/emoji_filter_test.rb", "test/html/pipeline/syntax_highlight_filter_test.rb"])
+  test.libs << '/usr/lib/ruby/vendor_ruby' << 'test'
+  test.verbose = false
+  test.warning = false
+end
+
+
+task :default => [:test]

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



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