[DRE-commits] [ruby-webrobots] 04/07: Update packaging with a `dh-make-ruby -w` run
Antonio Terceiro
terceiro at moszumanska.debian.org
Fri Jul 15 12:03:59 UTC 2016
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository ruby-webrobots.
commit 7f9f1c697018cc119c4b48fc0792afa11bacb015
Author: Antonio Terceiro <terceiro at debian.org>
Date: Fri Jul 15 08:49:52 2016 -0300
Update packaging with a `dh-make-ruby -w` run
---
debian/changelog | 2 ++
debian/control | 5 ++++-
debian/ruby-tests.rake | 6 ++++++
debian/ruby-tests.rb | 2 --
debian/rules | 13 ++-----------
5 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 31c5379..467299f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,8 @@ ruby-webrobots (0.1.2-1) UNRELEASED; urgency=medium
[ Antonio Terceiro ]
* New upstream release
- new build adds required Rubygems metadata (Closes: #830235)
+ * Update packaging with a `dh-make-ruby -w` run
+ - run test suite with debian/ruby-tests.rake; drop debian/ruby-tests.rb
-- Cédric Boutillier <boutil at moszumanska.debian.org> Fri, 15 Jul 2016 08:44:54 -0300
diff --git a/debian/control b/debian/control
index 5b0f271..39fb5be 100644
--- a/debian/control
+++ b/debian/control
@@ -5,12 +5,15 @@ Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.al
Uploaders: Gunnar Wolf <gwolf at debian.org>
Build-Depends: debhelper (>= 9~),
gem2deb,
+ racc,
+ rake,
ruby-nokogiri,
ruby-shoulda
-Standards-Version: 3.9.7
+Standards-Version: 3.9.8
Vcs-Git: https://anonscm.debian.org/git/pkg-ruby-extras/ruby-webrobots.git
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-ruby-extras/ruby-webrobots.git
Homepage: https://github.com/knu/webrobots
+Testsuite: autopkgtest-pkg-ruby
XS-Ruby-Versions: all
Package: ruby-webrobots
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/ruby-tests.rb b/debian/ruby-tests.rb
deleted file mode 100644
index 86a0c0b..0000000
--- a/debian/ruby-tests.rb
+++ /dev/null
@@ -1,2 +0,0 @@
-$: << 'test'
-require 'test_webrobots'
diff --git a/debian/rules b/debian/rules
index a5e7dc8..3454d59 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,15 +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=ruby1.8 ruby1.9.1 require-rubygems
-#
-# 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-webrobots.git
More information about the Pkg-ruby-extras-commits
mailing list