gplugin/gplugin

Initial convey support
feature/convey
2017-06-10, Gary Kramlich
37928abd06c4
Parents 49f7b7584d55
Children 3cb7d182f07d
Initial convey support
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/convey.yml Sat Jun 10 01:39:09 2017 -0500
@@ -0,0 +1,22 @@
+tasks:
+ import:
+ type: import
+ files:
+ - .
+ build-debian-stretch-amd64:
+ image: gplugin/builder:debian-stretch-amd64
+ export-debian-stretch-amd64:
+ type: export
+ files:
+ - debian-stretch-amd64:packages/debian-stretch-amd64
+plans:
+ debian-stretch-amd64:
+ stages:
+ - tasks:
+ - import
+ - build-debian-stretch-amd64
+ - export-debian-stretch-amd64
+meta-plans:
+ debian:
+ plans:
+ - debian-stretch-amd64
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/convey/Dockerfile.debian-stretch-amd64 Sat Jun 10 01:39:09 2017 -0500
@@ -0,0 +1,34 @@
+FROM debian:stretch
+
+MAINTAINER Gary Kramlich <grim@reaperworld.com>
+
+COPY debian/localepurge.selections /
+
+RUN set -ex && \
+ debconf-set-selections -v /localepurge.selections && \
+ apt-get update && \
+ apt-get install -y --no-install-recommends localepurge && \
+ apt-get clean && \
+ rm -rf /var/lib/apt/lists
+
+RUN set -ex && \
+ apt-get update && \
+ apt-get install -y --no-install-recommends \
+ ca-certificates unzip devscripts fakeroot debhelper \
+ build-essential meson gettext help2man xsltproc mercurial \
+ libglib2.0-dev gobject-introspection libgirepository1.0-dev libgtk-3-dev \
+ python3-dev python-gi-dev python3-gi \
+ liblua5.1-0-dev lua-lgi luarocks \
+ && \
+ apt-get clean && \
+ rm -rf /var/lib/apt/lists
+
+RUN set -ex && \
+ luarocks install moonscript
+
+CMD ["/build.sh"]
+
+ENV ARTIFACTS_DIR=debian-stretch-amd64/
+
+COPY debian/build.sh /build.sh
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/convey/convey.yaml Sat Jun 10 01:39:09 2017 -0500
@@ -0,0 +1,22 @@
+tasks:
+ import:
+ type: import
+ files:
+ - .
+ build-debian-stretch-amd64:
+ type: build
+ tag: gplugin/builder:debian-stretch-amd64
+ dockerfile: Dockerfile.debian-stretch-amd64
+ files:
+ - debian
+plans:
+ debian-stretch-amd64:
+ stages:
+ - tasks:
+ - import
+ - build-debian-stretch-amd64
+meta-plans:
+ debian:
+ plans:
+ - debian-stretch-amd64
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/convey/debian/Dockerfile.stretch.amd64 Sat Jun 10 01:39:09 2017 -0500
@@ -0,0 +1,33 @@
+FROM debian:stretch
+
+MAINTAINER Gary Kramlich <grim@reaperworld.com>
+
+COPY localepurge.selections /
+
+RUN set -ex && \
+ debconf-set-selections -v /localepurge.selections && \
+ apt-get update && \
+ apt-get install -y --no-install-recommends localepurge && \
+ apt-get clean && \
+ rm -rf /var/lib/apt/lists
+
+RUN set -ex && \
+ apt-get update && \
+ apt-get install -y --no-install-recommends \
+ ca-certificates unzip devscripts fakeroot debhelper dh-exec \
+ build-essential cmake gettext help2man xsltproc mercurial \
+ libglib2.0-dev gobject-introspection libgirepository1.0-dev libgtk-3-dev \
+ python3-dev python-gi-dev python3-gi \
+ liblua5.1-0-dev lua-lgi luarocks \
+ && \
+ apt-get clean && \
+ rm -rf /var/lib/apt/lists
+
+RUN set -ex && \
+ luarocks install moonscript
+
+CMD ["/build.sh"]
+
+ENV SRC_DIR=/src ARTIFACTS_DIR=/debian-stretch-amd64/
+
+COPY build.sh /build.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/convey/debian/build.sh Sat Jun 10 01:39:09 2017 -0500
@@ -0,0 +1,41 @@
+#!/bin/sh -ex
+# Copyright (C) 2015-2017 Gary Kramlich <grim@reaperworld.com>
+#
+# 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 3 of the License, or
+# (at your option) any later version.
+#
+# 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 program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+cd ${CONVEY_WORKSPACE}
+
+ARTIFACTS_DIR=${CONVEY_WORKSPACE}/${ARTIFACTS_DIR:-artifacts}
+mkdir -p ${ARTIFACTS_DIR}
+
+cp -a ${CONVEY_WORKSPACE}/packaging/debian debian
+
+HG_ID=$(hg id -i)
+BUILD_NUMBER="${BUILD_NUMBER:-0}"
+BUILD_VERSION="${BUILD_NUMBER}~${HG_ID}"
+VERSION=$(dpkg-parsechangelog --show-field Version)
+dch -v ${VERSION}.${BUILD_VERSION} "build for ${HG_ID}"
+debuild -us -uc
+
+find -name "*-junit.xml" -exec cp {} ${ARTIFACTS_DIR} \;
+
+cd ..
+DEBS_DIR="${ARTIFACTS_DIR}/debs"
+mkdir -p ${DEBS_DIR}
+cp *.changes ${DEBS_DIR}
+LINE_NO=$(grep -n Files: *.changes | cut -d: -f1)
+for FILENAME in $(cat *.changes | tail -n +${LINE_NO} | awk '{print $5}'); do
+ mv ${FILENAME} ${DEBS_DIR}
+done
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/convey/debian/localepurge.selections Sat Jun 10 01:39:09 2017 -0500
@@ -0,0 +1,10 @@
+localepurge localepurge/dontbothernew boolean false
+localepurge localepurge/none_selected boolean true
+localepurge localepurge/quickndirtycalc boolean true
+localepurge localepurge/remove_no note
+localepurge localepurge/use-dpkg-feature boolean true
+localepurge localepurge/verbose boolean false
+localepurge localepurge/nopurge multiselect
+localepurge localepurge/showfreedspace boolean true
+localepurge localepurge/mandelete boolean true
+