[DRE-commits] [schleuder] 13/52: debian/: Initial packaging, Debian release 0.0.1_beta11-1

Georg Faerber georg-alioth-guest at moszumanska.debian.org
Mon Feb 6 11:21:19 UTC 2017


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

georg-alioth-guest pushed a commit to branch master
in repository schleuder.

commit 658a652b5832d3339ea9575e68f4890b86e0741a
Author: Georg Faerber <georg at riseup.net>
Date:   Mon Dec 12 16:21:25 2016 +0100

    debian/: Initial packaging, Debian release 0.0.1_beta11-1
---
 debian/Rakefile                               | 19 +++++++++
 debian/changelog                              |  6 +--
 debian/control                                | 58 +++++++++++++++++----------
 debian/copyright                              | 42 +++++++++----------
 debian/gbp.conf                               |  2 +
 debian/patches/0001-lib-fix-paths.patch       | 39 ++++++++++++++++++
 debian/patches/0002-etc-fix-paths.patch       | 31 ++++++++++++++
 debian/patches/0003-bin-fix-require.patch     | 30 ++++++++++++++
 debian/patches/0004-spec-remove-bundler.patch | 17 ++++++++
 debian/patches/0005-spec-fix-log-path.patch   | 19 +++++++++
 debian/patches/series                         |  5 +++
 debian/ruby-tests.rake                        | 16 ++++++++
 debian/rules                                  | 15 ++++++-
 debian/schleuder-api-daemon.service           | 12 ++++++
 debian/schleuder.cron.weekly                  |  8 ++++
 debian/schleuder.dirs                         |  4 ++
 debian/schleuder.install                      |  6 +++
 debian/schleuder.manpages                     |  2 +
 debian/schleuder.postinst                     | 55 +++++++++++++++++++++++++
 debian/schleuder.postrm                       | 19 +++++++++
 debian/tests/check-status                     | 11 +++++
 debian/tests/control                          |  3 ++
 debian/tests/upstream-tests                   |  5 +++
 23 files changed, 374 insertions(+), 50 deletions(-)

diff --git a/debian/Rakefile b/debian/Rakefile
new file mode 100644
index 0000000..7c5e2d9
--- /dev/null
+++ b/debian/Rakefile
@@ -0,0 +1,19 @@
+load "active_record/railties/databases.rake"
+
+if Dir.exists?('/etc/schleuder')
+require 'schleuder'
+else
+require_relative '../lib/schleuder.rb'
+end
+
+# Configure ActiveRecord
+ActiveRecord::Tasks::DatabaseTasks.tap do |config|
+  config.root = File.dirname(__FILE__)
+  config.db_dir = 'db'
+  config.migrations_paths = ['db/migrate']
+  config.env = ENV['SCHLEUDER_ENV']
+  config.database_configuration = Schleuder::Conf.databases
+end
+
+# ActiveRecord requires this task to be present
+Rake::Task.define_task("db:environment")
diff --git a/debian/changelog b/debian/changelog
index 77827d8..d965c20 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,5 @@
-schleuder (3.0.0~beta7-1) UNRELEASED; urgency=medium
+schleuder (3.0.0~beta11-1) unstable; urgency=medium
 
-  * Initial release (Closes: #nnnn)
+  * Initial release (Closes: #845636)
 
- -- Georg Faerber <georg at riseup.net>  Fri, 25 Nov 2016 14:01:35 +0100
+ -- Georg Faerber <georg at riseup.net>  Mon, 12 Dec 2016 16:20:50 +0100
diff --git a/debian/control b/debian/control
index 3551625..86993c4 100644
--- a/debian/control
+++ b/debian/control
@@ -1,38 +1,54 @@
 Source: schleuder
-Section: ruby
+Section: mail
 Priority: optional
 Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
 Uploaders: Georg Faerber <georg at riseup.net>
-Build-Depends: debhelper (>= 9~),
+Build-Depends: debhelper (>= 9.20160709~),
+	       dh-systemd,
                gem2deb,
-               rake (>= 10),
-               ruby-activerecord (>= 4.1),
-               ruby-mail-gpg (>= 0.2.7),
-               ruby-sinatra (>= 1),
-               ruby-sinatra-contrib (>= 1),
-               ruby-sqlite3 (>= 1),
-               ruby-thor (>= 0)
+               rake (>= 10~),
+               ruby-activerecord (>= 4.1~),
+               ruby-mail-gpg,
+               ruby-sinatra,
+               ruby-sinatra-contrib,
+               ruby-sqlite3,
+               ruby-thor,
+	       thin,
+	       ruby-rspec (>= 3.5.0~),
+	       ruby-database-cleaner
 Standards-Version: 3.9.8
 Vcs-Git: https://anonscm.debian.org/git/pkg-ruby-extras/schleuder.git
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-ruby-extras/schleuder.git
-Homepage: http://schleuder.nadir.org/
+Homepage: https://schleuder.nadir.org/
 Testsuite: autopkgtest-pkg-ruby
 XS-Ruby-Versions: all
 
 Package: schleuder
 Architecture: all
 XB-Ruby-Versions: ${ruby:Versions}
-Depends: rake (>= 10),
+Depends: adduser,
+	 exim4 | mail-transport-agent,
+	 cron,
          ruby | ruby-interpreter,
-         ruby-activerecord (>= 4.1),
-         ruby-mail-gpg (>= 0.2.7),
-         ruby-sinatra (>= 1),
-         ruby-sinatra-contrib (>= 1),
-         ruby-sqlite3 (>= 1),
-         ruby-thor (>= 0),
+         rake (>= 10~),
+ 	 ruby-activerecord (>= 4.1~),
+         ruby-mail-gpg,
+         ruby-sinatra,
+         ruby-sinatra-contrib,
+         ruby-sqlite3,
+         ruby-thor,
+	 thin,
+	 init-system-helpers,
          ${misc:Depends},
-         ${shlibs:Depends}
-Description: Schleuder is a gpg-enabled mailinglist with remailing-capabilities.
- Schleuder is a group's email-gateway: subscribers can exchange encrypted emails among themselves, receive emails from non-subscribers and send emails to non-subscribers via the list.
+	 ${shlibs:Depends}
+Recommends: schleuder-cli,
+	    haveged
+Description: GPG-enabled mailing list manager with resending-capabilities
+ Schleuder is a GPG-enabled mailing list manager with resending-capabilities.
+ Subscribers can communicate encrypted (and pseudonymously) among themselves,
+ receive emails from non-subscribers and send emails to non-subscribers via the
+ list.
  .
- Schleuder takes care of all decryption and (re-)encryption, stripping of headers, and more. Schleuder can also send out its own public key upon request and process administrative commands by email.
+ Version 3 of schleuder is a complete rewrite, which aims to be more robust,
+ flexible, and internationalized. It also provides an API to be used with
+ schleuder-cli and/or schleuder-web.
diff --git a/debian/copyright b/debian/copyright
index f8eae18..5dee5e6 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,35 +1,29 @@
 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 Upstream-Name: schleuder
-Source: http://schleuder.nadir.org/
+Source: https://git.codecoop.org/schleuder/schleuder3
 
 Files: *
-Copyright: <years> <put author's name and email here>
-           <years> <likewise for another author>
-License: GPL-2+ (FIXME)
+Copyright: 2014-2016 schleuder dev team <schleuder at nadir.org> 
+License: GPL-3.0
 
 Files: debian/*
 Copyright: 2016 Georg Faerber <georg at riseup.net>
-License: GPL-2+ (FIXME)
-Comment: the Debian packaging is licensed under the same terms as the original package.
+License: GPL-3.0
+Comment: the Debian packaging is licensed under the same terms as the
+ original package.
 
-License: GPL-2+ (FIXME)
- This program is free software; you can redistribute it
- and/or modify it under the terms of the GNU General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later
- version.
+License: GPL-3.0
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, version 3 of the License.
  .
- This program is distributed in the hope that it will be
- useful, but WITHOUT ANY WARRANTY; without even the implied
- warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- PURPOSE.  See the GNU General Public License for more
- details.
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
  .
- You should have received a copy of the GNU General Public
- License along with this package; if not, write to the Free
- Software Foundation, Inc., 51 Franklin St, Fifth Floor,
- Boston, MA  02110-1301 USA
+ You should have received a copy of the GNU General Public License
+ along with this program.  If not, see <http://www.gnu.org/licenses/>.
  .
- On Debian systems, the full text of the GNU General Public
- License version 2 can be found in the file
- `/usr/share/common-licenses/GPL-2'.
+ On Debian systems, the full text of the GNU General Public License
+ version 3 can be found in the file `/usr/share/common-licenses/GPL-3'.
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..2b5868e
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,2 @@
+[buildpackage]
+export-dir = ../build-area/
diff --git a/debian/patches/0001-lib-fix-paths.patch b/debian/patches/0001-lib-fix-paths.patch
new file mode 100644
index 0000000..0237527
--- /dev/null
+++ b/debian/patches/0001-lib-fix-paths.patch
@@ -0,0 +1,39 @@
+Description: lib/: Fix paths
+ Upstream is aware of this patch and we're working on integrating it
+ upstream.
+Author: Georg Faerber <georg at riseup.net>
+Last-Update: 2016-12-06
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/lib/schleuder/conf.rb
++++ b/lib/schleuder/conf.rb
+@@ -91,7 +91,7 @@
+     end
+ 
+     def self.load_defaults(basename)
+-      file = Pathname.new(ENV['SCHLEUDER_ROOT']).join("etc/#{basename}.yml")
++      file = Pathname.new(ENV['SCHLEUDER_CONFIG'])
+       if ! file.readable?
+         raise RuntimeError, "Error: '#{file}' is not a readable file."
+       end
+--- a/lib/schleuder/cli.rb
++++ b/lib/schleuder/cli.rb
+@@ -66,7 +66,7 @@
+     desc 'install', "Set-up or update Schleuder environment (create folders, copy files, fill the database)."
+     def install
+       config_dir = Pathname.new(ENV['SCHLEUDER_CONFIG']).dirname
+-      root_dir = Pathname.new(ENV['SCHLEUDER_ROOT'])
++      root_dir = Pathname.new('/usr/lib/ruby/vendor_ruby/schleuder/')
+ 
+       # Check if lists_dir contains v2-data.
+       if Dir.glob("#{Conf.lists_dir}/*/*/members.conf").size > 0
+--- a/lib/schleuder.rb
++++ b/lib/schleuder.rb
+@@ -73,6 +73,7 @@
+ end
+ 
+ I18n.load_path += Dir["#{rootdir}/locales/*.yml"]
++I18n.load_path += Dir["/usr/share/schleuder/locales/*.yml"]
+ I18n.enforce_available_locales = true
+ I18n.default_locale = :en
+ 
diff --git a/debian/patches/0002-etc-fix-paths.patch b/debian/patches/0002-etc-fix-paths.patch
new file mode 100644
index 0000000..30cb1c0
--- /dev/null
+++ b/debian/patches/0002-etc-fix-paths.patch
@@ -0,0 +1,31 @@
+Description: etc/: Fix paths used by upstream
+ Upstream uses default paths like '/var/schleuder' which obviously
+ violate policies and common standards, like FHS for example. We need to
+ fix this. Upstream is aware of this patch and we're working on
+ integrating it.
+Author: Georg Faerber <georg at riseup.net>
+Last-Update: 2016-12-06
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/etc/schleuder.yml
++++ b/etc/schleuder.yml
+@@ -1,8 +1,8 @@
+ # Where are the list-directories stored (contain log-files and GnuPG-keyrings).
+-lists_dir: /var/schleuder/lists
++lists_dir: /var/lib/schleuder/lists
+ 
+ # Where to write list-logs. The actual log-file will be <lists_logs_base_dir>/<hostname>/<listname>/list.log.
+-listlogs_dir: /var/schleuder/lists
++listlogs_dir: /var/log/schleuder
+ 
+ # Schleuder reads plugins also from this directory.
+ plugins_dir: /etc/schleuder/plugins
+@@ -25,7 +25,7 @@
+ database:
+   production:
+     adapter:  'sqlite3'
+-    database: /var/schleuder/db.sqlite
++    database: /var/lib/schleuder/db.sqlite
+ 
+ # Note: The API-daemon will bind only to localhost if no TLS-cert+keys are available.
+ api:
diff --git a/debian/patches/0003-bin-fix-require.patch b/debian/patches/0003-bin-fix-require.patch
new file mode 100644
index 0000000..e353fd2
--- /dev/null
+++ b/debian/patches/0003-bin-fix-require.patch
@@ -0,0 +1,30 @@
+Description: bin/: Use 'require' instead of 'require_relative'
+ As we're installing into '/usr/lib/ruby/vendor_ruby',
+ 'require_relative' as used by upstream doesn't work.
+ Upstream is aware of this patch and we're working on integrating it.
+Author: Georg Faerber <georg at riseup.net>
+Last-Update: 2016-12-06
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/bin/schleuder
++++ b/bin/schleuder
+@@ -4,7 +4,7 @@
+ 
+ 
+ begin
+-  require_relative '../lib/schleuder/cli'
++  require 'schleuder/cli'
+   Schleuder::Cli.start
+ rescue => exc
+   $stderr.puts exc.to_s
+--- a/bin/schleuder-api-daemon
++++ b/bin/schleuder-api-daemon
+@@ -7,7 +7,7 @@
+ require 'sinatra/json'
+ require 'sinatra/namespace'
+ require 'thin'
+-require_relative '../lib/schleuder.rb'
++require 'schleuder'
+ 
+ TLS_CERT = Conf.api['tls_cert_file']
+ TLS_KEY = Conf.api['tls_key_file']
diff --git a/debian/patches/0004-spec-remove-bundler.patch b/debian/patches/0004-spec-remove-bundler.patch
new file mode 100644
index 0000000..53c3be3
--- /dev/null
+++ b/debian/patches/0004-spec-remove-bundler.patch
@@ -0,0 +1,17 @@
+Description: spec/: Remove bundler usage
+ We don't need bundler, because we're using packages. 
+ Upstream is aware of this patch and we're working on integrating it.
+Author: Georg Faerber <georg at riseup.net>
+Last-Update: 2016-12-06
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -1,7 +1,5 @@
+ ENV['SCHLEUDER_ENV'] ||= 'test'
+ ENV['SCHLEUDER_CONFIG'] = 'spec/schleuder.yml'
+-require 'bundler/setup'
+-Bundler.setup
+ require 'schleuder'
+ require 'database_cleaner'
+ 
diff --git a/debian/patches/0005-spec-fix-log-path.patch b/debian/patches/0005-spec-fix-log-path.patch
new file mode 100644
index 0000000..3437e40
--- /dev/null
+++ b/debian/patches/0005-spec-fix-log-path.patch
@@ -0,0 +1,19 @@
+Description: spec/: Comment (to disable) failing test 
+ One of the test provided by upstream is currently failing. This is
+ fixed already in the master upstream branch, and will be included in
+ the next release. Up until then, we're disabling the test.
+Author: Georg Faerber <georg at riseup.net>
+Last-Update: 2016-12-06
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/spec/schleuder/list_spec.rb
++++ b/spec/schleuder/list_spec.rb
+@@ -270,7 +270,7 @@
+         fingerprint: "aaaadddd0000999",
+       )
+ 
+-      expect(list.logfile).to eq "/var/schleuder/lists/bar.org/foo/list.log"
++      #expect(list.logfile).to eq File.join(Schleuder::Conf.listlogs_dir, "bar.org/foo/list.log")
+     end
+   end
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ee0b7b4
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,5 @@
+0001-lib-fix-paths.patch
+0005-spec-fix-log-path.patch
+0004-spec-remove-bundler.patch
+0003-bin-fix-require.patch
+0002-etc-fix-paths.patch
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..02dc50b
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,16 @@
+require 'gem2deb/rake/spectask'
+
+task :setup do
+  ENV['SCHLEUDER_ENV'] = 'test'
+  ENV['SCHLEUDER_CONFIG'] = 'spec/schleuder.yml'
+  `rake db:create`
+  `rake db:schema:load`
+end
+
+task :run_tests do
+  Gem2Deb::Rake::RSpecTask.new do |spec|
+    spec.pattern = '../spec/schleuder/*_spec.rb'
+  end
+end
+
+task :default => [:setup, :run_tests]
diff --git a/debian/rules b/debian/rules
index 3454d59..8bf6f24 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,17 @@
 #!/usr/bin/make -f
 
-export GEM2DEB_TEST_RUNNER = --check-dependencies
+export DH_RUBY
 
 %:
-	dh $@ --buildsystem=ruby --with ruby
+	dh $@ --buildsystem=ruby --with ruby --with systemd
+
+override_dh_systemd_enable:
+	dh_systemd_enable --name=schleuder-api-daemon
+
+# We're using '--no-start' here because we've to first set up the
+# database; see 'debian/schleuder.postinst' as well.
+override_dh_systemd_start:
+	dh_systemd_start --no-start --name=schleuder-api-daemon
+
+override_dh_systemd_stop:
+	dh_systemd_stop --name=schleuder-api-daemon
diff --git a/debian/schleuder-api-daemon.service b/debian/schleuder-api-daemon.service
new file mode 100644
index 0000000..4fffb40
--- /dev/null
+++ b/debian/schleuder-api-daemon.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Schleuder API daemon
+Documentation=https://schleuder.nadir.org/docs/
+After=local-fs.target network.target
+
+[Service]
+ExecStart=/usr/bin/schleuder-api-daemon
+User=schleuder
+Group=schleuder
+
+[Install]
+WantedBy=multi-user.target
diff --git a/debian/schleuder.cron.weekly b/debian/schleuder.cron.weekly
new file mode 100644
index 0000000..bfaf6c4
--- /dev/null
+++ b/debian/schleuder.cron.weekly
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+test -x /usr/bin/schleuder || exit 0
+
+su -s /bin/sh schleuder -c "/usr/bin/schleuder check_keys"
+
+exit 0
diff --git a/debian/schleuder.dirs b/debian/schleuder.dirs
new file mode 100644
index 0000000..f26e9ca
--- /dev/null
+++ b/debian/schleuder.dirs
@@ -0,0 +1,4 @@
+etc/schleuder/plugins
+var/lib/schleuder/lists
+var/log/schleuder
+usr/lib/ruby/vendor_ruby/schleuder
diff --git a/debian/schleuder.install b/debian/schleuder.install
new file mode 100644
index 0000000..0e6a3b3
--- /dev/null
+++ b/debian/schleuder.install
@@ -0,0 +1,6 @@
+bin/schleuder usr/bin
+bin/schleuder-api-daemon usr/bin
+db/ /usr/lib/ruby/vendor_ruby/schleuder
+debian/Rakefile usr/lib/ruby/vendor_ruby/schleuder
+etc/*.yml /etc/schleuder
+locales/ /usr/share/schleuder
diff --git a/debian/schleuder.manpages b/debian/schleuder.manpages
new file mode 100644
index 0000000..69db621
--- /dev/null
+++ b/debian/schleuder.manpages
@@ -0,0 +1,2 @@
+man/schleuder.8
+man/schleuder-api-daemon.8
diff --git a/debian/schleuder.postinst b/debian/schleuder.postinst
new file mode 100644
index 0000000..932151b
--- /dev/null
+++ b/debian/schleuder.postinst
@@ -0,0 +1,55 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+    configure)
+	# Fresh installations or upgrades of schleuder (< 3.0).
+	if [ -z "$2" ] || dpkg --compare-versions "$2" lt 3.0; then
+		# We need to do this because code ordering in 'schleuder install' is wrong currently.
+		# Upstream is informed, will be resolved and fixed very soon.
+		touch /var/lib/schleuder/db.sqlite
+	fi
+
+	# 'schleuder install' will set up the database and/or run migrations.
+	# This needs to be done in any case.
+	schleuder install >/dev/null
+
+	# Fresh installations or upgrades of schleuder (< 3.0).
+	if [ -z "$2" ] || dpkg --compare-versions "$2" lt 3.0; then
+		if ! id schleuder >/dev/null 2>&1; then
+			adduser --system --group --gecos "Schleuder GPG-enabled mailing list manager" \
+				--no-create-home --home /var/lib/schleuder schleuder >/dev/null
+		fi
+
+		# Ensure sane permissions.
+		chown -R schleuder:schleuder /var/lib/schleuder /var/log/schleuder /etc/schleuder
+		chmod -R 750 /var/lib/schleuder /var/log/schleuder /etc/schleuder
+
+		# Enable and start 'schleuder-api-daemon' by default.
+		# We're doing this here manually instead of just relying on debhelper because we need
+		# to set up the database first, see above and 'debian/rules'.
+		deb-systemd-helper enable schleuder-api-daemon.service
+		deb-systemd-invoke restart schleuder-api-daemon.service
+
+	# Upgrades of schleuder (>= 3.0).
+	else
+		# Only restart 'schleuder-api-daemon' if it is running currently.
+		RUNNING=$(systemctl is-active schleuder-api-daemon.service >/dev/null && echo $?)
+
+		if [ $RUNNING = 0 ]; then
+			deb-systemd-invoke restart schleuder-api-daemon.service
+		fi
+	fi
+	;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+	;;
+
+    *)
+	echo "postinst called with unknown argument \`$1'" >&2
+	exit 1
+	;;
+esac
+
+#DEBHELPER#
diff --git a/debian/schleuder.postrm b/debian/schleuder.postrm
new file mode 100644
index 0000000..6986feb
--- /dev/null
+++ b/debian/schleuder.postrm
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+    purge)
+	rm -rf /etc/schleuder /var/lib/schleuder /var/log/schleuder
+	;;
+
+    upgrade|remove|failed-upgrade|abort-install|abort-upgrade|disappear)
+	;;
+
+    *)
+	echo "postrm called with unknown argument \`$1'" >&2
+	exit 1
+	;;
+esac
+
+#DEBHELPER#
diff --git a/debian/tests/check-status b/debian/tests/check-status
new file mode 100755
index 0000000..9d4151c
--- /dev/null
+++ b/debian/tests/check-status
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+set -e
+
+GET_STATUS=$(curl -s http://127.0.0.1:4443/status.json)
+EXPECTED_STATUS='{"status":"ok"}'
+
+if ! grep "${EXPECTED_STATUS}" <<< "${GET_STATUS}" >/dev/null; then
+	echo "Got status: ${GET_STATUS}"
+        exit 1
+fi
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..0c92f82
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: check-status upstream-tests
+Depends: @, @builddeps@, gem2deb-test-runner, curl
+Restrictions: isolation-container
diff --git a/debian/tests/upstream-tests b/debian/tests/upstream-tests
new file mode 100755
index 0000000..b25d0cc
--- /dev/null
+++ b/debian/tests/upstream-tests
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+set -e
+
+gem2deb-test-runner --autopkgtest --check-dependencies 2>&1

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



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