From: Eric Wong <e@80x24.org>
To: spew@80x24.org
Subject: [PATCH] wip
Date: Wed, 2 Jan 2019 09:21:03 +0000 [thread overview]
Message-ID: <20190102092103.13892-1-e@80x24.org> (raw)
---
ci/GNUmakefile | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 63 insertions(+)
create mode 100644 ci/GNUmakefile
diff --git a/ci/GNUmakefile b/ci/GNUmakefile
new file mode 100644
index 0000000..362bd34
--- /dev/null
+++ b/ci/GNUmakefile
@@ -0,0 +1,63 @@
+# Copyright (C) 2019 all contributors <meta@public-inbox.org>
+# License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
+
+PERL = perl
+SUDO = sudo
+GIT = git
+GIT_URL = https://public-inbox.org/
+TMPDIR = /tmp
+BUILDDIR = $(TMPDIR)/public-inbox-$@
+
+cur_git_dir := $(shell $(GIT) rev-parse --git-dir)
+ifneq ($(cur_git_dir),)
+ git_reference = --reference $(cur_git_dir)
+endif
+
+all ::
+ @echo usage:
+ @echo $(MAKE) sid-all
+ @echo $(MAKE) sid-min
+
+sid_all :=
+sid_min :=
+
+sid_min += libdatetime-perl
+sid_min += libemail-mime-perl
+sid_min += libplack-perl
+sid_min += liburi-perl
+
+# Plack depends on this:
+sid_min += libfilesys-notify-simple-perl
+
+sid_all += libdanga-socket-perl
+sid_all += libdbd-sqlite3-perl
+sid_all += libdbi-perl
+sid_all += libplack-middleware-deflater-perl
+sid_all += libplack-middleware-reverseproxy-perl
+sid_all += libsearch-xapian-perl
+sid_all += libsocket6-perl
+sid_all += libipc-run-perl
+sid_all += xapian-tools
+sid_all += spamassassin
+sid_all += liblinux-inotify2-perl
+
+sid_remove = $(addsuffix -,$(filter-out $(sid_min),$(sid_all)))
+
+install-debs-sid-all ::
+ $(SUDO) apt-get install -yqq $(sid_all)
+
+install-debs-sid-min ::
+ $(SUDO) apt-get install --purge -yqq $(sid_min) $(sid_remove)
+ $(SUDO) apt-get autoremove --purge -yqq
+
+sid-min sid-all ::
+ $(MAKE) install-debs-$@ build-and-test BUILDDIR=$(TMPDIR)/$@
+
+build-and-test ::
+ $(RM) -r $(BUILDDIR)
+ mkdir -p $(BUILDDIR)
+ $(GIT) clone -q $(git_reference) $(GIT_URL) $(BUILDDIR)
+ cd $(BUILDDIR) && $(PERL) Makefile.PL && $(MAKE) && $(MAKE) check
+ $(RM) -r $(BUILDDIR)
+
+.NOTPARALLEL:
--
2.20.1
next reply other threads:[~2019-01-02 9:21 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-02 9:21 Eric Wong [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-10-27 20:16 [PATCH] wip Eric Wong
2021-06-05 19:58 Eric Wong
2021-04-05 7:42 Eric Wong
2021-03-08 7:11 Eric Wong
2021-01-21 4:24 [PATCH] WIP Eric Wong
2021-01-03 22:57 [PATCH] wip Eric Wong
2020-12-27 11:36 [PATCH] WIP Eric Wong
2020-11-15 7:35 [PATCH] wip Eric Wong
2020-04-23 4:27 Eric Wong
2020-04-20 7:14 Eric Wong
2020-01-13 9:24 [PATCH] WIP Eric Wong
2019-05-11 22:55 Eric Wong
2018-07-06 21:31 [PATCH] wip Eric Wong
2018-06-24 11:55 Eric Wong
2018-06-24 8:39 Eric Wong
2017-07-15 1:42 [PATCH] WIP Eric Wong
2017-04-12 20:17 [PATCH] wip Eric Wong
2017-04-05 18:40 Eric Wong
2016-08-23 20:07 Eric Wong
2016-08-18 2:16 Eric Wong
2016-06-26 3:46 Eric Wong
2015-12-22 0:15 Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190102092103.13892-1-e@80x24.org \
--to=e@80x24.org \
--cc=spew@80x24.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).