[DRE-commits] [ruby-moneta] 03/05: Run tests through new upstream script

Jérémy Bobbio lunar at moszumanska.debian.org
Thu Apr 10 17:39:20 UTC 2014


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

lunar pushed a commit to branch master
in repository ruby-moneta.

commit 274daaa20be0faa2db35ab7a96cdd54d5be44173
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Thu Apr 10 17:57:18 2014 +0200

    Run tests through new upstream script
    
    We drop rake as a dependency as upstream is not using it anymore.
---
 debian/control       | 2 +-
 debian/ruby-tests.rb | 8 +++-----
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/debian/control b/debian/control
index 933476b..7859a38 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: ruby
 Priority: extra
 Maintainer: Joshua Timberman <joshua at opscode.com>
 Uploaders: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
-Build-Depends-Indep: debhelper (>= 8), gem2deb (>= 0.3.0~), ruby-setup, ruby-rspec (>= 2.11), ruby-rspec-retry, ruby-activesupport-3.2 (>= 3.2.11~), ruby-sequel, ruby-mysql2, ruby-sqlite3, ruby-kyotocabinet, ruby-tokyocabinet, ruby-multi-json, ruby-fog, ruby-rack, ruby-rack-cache, rake, mysql-server, netcat
+Build-Depends-Indep: debhelper (>= 8), gem2deb (>= 0.3.0~), ruby-setup, ruby-rspec (>= 2.11), ruby-rspec-retry, ruby-activesupport-3.2 (>= 3.2.11~), ruby-sequel, ruby-mysql2, ruby-sqlite3, ruby-kyotocabinet, ruby-tokyocabinet, ruby-multi-json, ruby-fog, ruby-rack, ruby-rack-cache, mysql-server, netcat
 Standards-Version: 3.9.4
 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-moneta.git
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-moneta.git
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index 67df620..5228f16 100644
--- a/debian/ruby-tests.rb
+++ b/debian/ruby-tests.rb
@@ -33,8 +33,6 @@ end
 
 ENV['MYSQL_TEST_SOCKET'] = File.join(mysql_datadir, 'mysql.sock')
 
-require 'rake'
-app = Rake.application
-app.init
-app.load_rakefile
-app['test'].invoke
+require 'rbconfig'
+ruby = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
+exec("#{ruby} script/parallel-tests")

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



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