[DRE-commits] [ruby-coffee-rails] 06/10: run tests
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Tue Jul 28 18:46:14 UTC 2015
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository ruby-coffee-rails.
commit b961fa2634b868c66086cf8ff85419d6885435c4
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Tue Jul 28 20:50:33 2015 +0530
run tests
---
debian/changelog | 1 +
debian/patches/remove_bundler.patch | 13 +++++++++++++
debian/patches/series | 1 +
debian/ruby-tests.rake | 9 +++++++++
debian/rules | 4 ++++
5 files changed, 28 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 6e19e3f..7bc3cf4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ ruby-coffee-rails (4.1.0-1) UNRELEASED; urgency=medium
* Refresh patches.
* Add short license to copyright.
* Bump standards version to 3.9.6.
+ * Run tests.
-- Pirate Praveen <praveen at debian.org> Tue, 28 Jul 2015 20:14:09 +0530
diff --git a/debian/patches/remove_bundler.patch b/debian/patches/remove_bundler.patch
new file mode 100644
index 0000000..3f574ec
--- /dev/null
+++ b/debian/patches/remove_bundler.patch
@@ -0,0 +1,13 @@
+Index: ruby-coffee-rails/test/test_helper.rb
+===================================================================
+--- ruby-coffee-rails.orig/test/test_helper.rb
++++ ruby-coffee-rails/test/test_helper.rb
+@@ -1,7 +1,7 @@
+ # Configure Rails Envinronment
+ ENV["RAILS_ENV"] = "test"
+
+-require 'bundler/setup'
++#require 'bundler/setup'
+ require 'rails'
+ require "rails/test_help"
+
diff --git a/debian/patches/series b/debian/patches/series
index d77d941..4ca6eca 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
engine-root.patch
+remove_bundler.patch
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..fc925a8
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,9 @@
+require 'rake/testtask'
+Rake::TestTask.new(:test) do |test|
+ test.libs << 'test'
+ test.test_files = FileList["test/**/*_test.rb"]
+ test.verbose = false
+ test.warning = false
+end
+
+task :default => [:test]
diff --git a/debian/rules b/debian/rules
index b7eacff..8e532b6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,3 +7,7 @@ override_dh_auto_install:
dh_auto_install
mkdir -p debian/ruby-coffee-rails/usr/share/ruby-coffee-rails/lib
mv debian/ruby-coffee-rails/usr/lib/ruby/vendor_ruby/assets debian/ruby-coffee-rails/usr/share/ruby-coffee-rails/lib/assets
+
+override_dh_auto_clean:
+ dh_auto_clean --buildsystem=ruby --with ruby
+ rm -rf tmp
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-coffee-rails.git
More information about the Pkg-ruby-extras-commits
mailing list