[DRE-commits] [ruby-clockwork] 02/03: Update packaging using dh-make-ruby -w

Thiago Ribeiro thiagovsk-guest at moszumanska.debian.org
Thu Mar 3 16:59:07 UTC 2016


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

thiagovsk-guest pushed a commit to branch master
in repository ruby-clockwork.

commit 03937648c44e11611c53e617094f66d4028e1a51
Author: Thiago Ribeiro <thiagitosouza at gmail.com>
Date:   Thu Mar 3 12:33:13 2016 -0300

    Update packaging using dh-make-ruby -w
---
 debian/control              | 27 ++++++++++++++++++---------
 debian/ruby-test-files.yaml |  8 --------
 debian/ruby-tests.rake      |  6 ++++++
 debian/rules                | 14 ++------------
 4 files changed, 26 insertions(+), 29 deletions(-)

diff --git a/debian/control b/debian/control
index 7b8ecab..31ab7bc 100644
--- a/debian/control
+++ b/debian/control
@@ -3,21 +3,30 @@ Section: ruby
 Priority: optional
 Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
 Uploaders: Andrew Lee (李健秋) <andrew.lee at collabora.co.uk>
-Build-Depends: debhelper (>= 9~), gem2deb,
- ruby-activesupport, ruby-mocha, rake, ruby-daemons, ruby-test-unit,
- ruby-minitest
-Standards-Version: 3.9.6
-Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-clockwork.git
-Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-clockwork.git;a=summary
+Build-Depends: debhelper (>= 9~),
+               gem2deb,
+               rake,
+               ruby-activesupport,
+               ruby-tzinfo,
+               ruby-mocha,
+               rake,
+               ruby-daemons,
+               ruby-minitest
+Standards-Version: 3.9.7
+Vcs-Git: https://anonscm.debian.org/git/pkg-ruby-extras/ruby-clockwork.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-ruby-extras/ruby-clockwork.git
 Homepage: http://github.com/tomykaira/clockwork
-Testsuite: autopkgtest
+Testsuite: autopkgtest-pkg-ruby
 XS-Ruby-Versions: all
 
 Package: ruby-clockwork
 Architecture: all
 XB-Ruby-Versions: ${ruby:Versions}
-Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter,
- ruby-tzinfo, ruby-activesupport
+Depends: ruby | ruby-interpreter,
+         ruby-activesupport,
+         ruby-tzinfo,
+         ${misc:Depends},
+         ${shlibs:Depends}
 Description: scheduler process to replace cron
  Clockwork is a cron replacement.  It runs as a lightweight,
  long-running Ruby process which sits alongside your web processes
diff --git a/debian/ruby-test-files.yaml b/debian/ruby-test-files.yaml
deleted file mode 100644
index 90a35a0..0000000
--- a/debian/ruby-test-files.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
----
-- test/at_test.rb
-- test/clockwork_test.rb
-- test/database_events/support/active_record_fake.rb
-- test/database_events/sync_performer_test.rb
-- test/database_events/test_helpers.rb
-- test/event_test.rb
-- test/manager_test.rb
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
diff --git a/debian/rules b/debian/rules
index b40c30c..3454d59 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,16 +1,6 @@
 #!/usr/bin/make -f
-#export DH_VERBOSE=1
-#
-# Uncomment to ignore all test failures (but the tests will run anyway)
-#export DH_RUBY_IGNORE_TESTS=all
-#
-# Uncomment to ignore some test failures (but the tests will run anyway).
-# Valid values:
-#export DH_RUBY_IGNORE_TESTS=ruby2.1 require-rubygems
-export DH_RUBY_IGNORE_TESTS=ruby2.2
-#
-# If you need to specify the .gemspec (eg there is more than one)
-#export DH_RUBY_GEMSPEC=gem.gemspec
+
+export GEM2DEB_TEST_RUNNER = --check-dependencies
 
 %:
 	dh $@ --buildsystem=ruby --with ruby

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



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