[DRE-commits] [ruby-em-synchrony] 09/16: Move logic for calling debian/start_services_and_run.sh for running the tests inside debian/ruby-tests.rake

Lucas Kanashiro kanashiro.duarte at gmail.com
Wed Mar 2 12:44:40 UTC 2016


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

kanashiro-guest pushed a commit to branch master
in repository ruby-em-synchrony.

commit 92d42a5dba3fc2cd46d3118eb61fb2149dda3d98
Author: Lucas Kanashiro <kanashiro.duarte at gmail.com>
Date:   Wed Mar 2 09:15:23 2016 -0300

    Move logic for calling debian/start_services_and_run.sh for running the tests inside debian/ruby-tests.rake
---
 debian/changelog       | 2 ++
 debian/ruby-tests.rake | 7 +++----
 debian/rules           | 4 ----
 3 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index d6ad4d8..7b9fb5e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,8 @@ ruby-em-synchrony (1.0.4-1) UNRELEASED; urgency=medium
   * rename debian/start_services_and_auto_install.sh to
     debian/start_services_and_run.sh and make it generic; adapt all in
     debian/rules accordingly.
+  * Move logic for calling debian/start_services_and_run.sh for running the
+    tests inside debian/ruby-tests.rake
 
  -- Lucas Kanashiro <kanashiro.duarte at gmail.com>  Tue, 01 Mar 2016 18:36:38 -0300
 
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
index 89a753d..f4d23cf 100644
--- a/debian/ruby-tests.rake
+++ b/debian/ruby-tests.rake
@@ -1,7 +1,6 @@
 require 'rspec/core/rake_task'
 
-RSpec::Core::RakeTask.new(:spec) do |spec|
-  spec.pattern      = './spec/**/*_spec.rb'
+task :default do
+  ruby = RbConfig::CONFIG['ruby_install_name']
+  sh "./debian/start_services_and_run.sh #{ruby} -S rspec"
 end
-
-task :default => :spec
diff --git a/debian/rules b/debian/rules
index c372986..eccaf9c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,7 +14,3 @@
 %:
 	dh $@ --buildsystem=ruby --with ruby
 
-# need to start various services to run the tests
-override_dh_auto_install:
-	chmod +x debian/start_services_and_run.sh
-	debian/start_services_and_run.sh dh_auto_install

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



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