gplugin/builders

Add an image for verifying i18n

2020-02-25, Gary Kramlich
ae74be0084f3
Parents a37f9d82c861
Children eab7881db62a
Add an image for verifying i18n
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Dockerfile.i18n Tue Feb 25 02:02:41 2020 -0600
@@ -0,0 +1,6 @@
+FROM gplugin/builders:debian-bullseye-amd64
+
+MAINTAINER Gary Kramlich <grim@reaperworld.com>
+
+COPY i18n/build.sh /
+
--- a/convey.yml Tue Feb 25 01:46:13 2020 -0600
+++ b/convey.yml Tue Feb 25 02:02:41 2020 -0600
@@ -104,6 +104,11 @@
stages:
- tasks: [import, build]
+ i18n:
+ environment: [TARGET=i18n]
+ stages:
+ - tasks: [import, build]
+
mingw-w64-i686:
environment: [TARGET=mingw-w64-i686]
stages:
@@ -155,6 +160,7 @@
- fedora-31-amd64
- fedora-32-amd64
- fedora-rawhide-amd64
+ - i18n
- mingw-w64-i686
- mingw-w64-x86_64
- opensuse-tumbleweed-amd64
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/i18n/build.sh Tue Feb 25 02:02:41 2020 -0600
@@ -0,0 +1,27 @@
+#!/bin/sh -ex
+# Copyright (C) 2015-2020 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}
+
+BUILD_DIR="build-i18n"
+
+meson "${BUILD_DIR}"
+ninja -C "${BUILD_DIR}" gplugin-pot
+
+mkdir -p ${CONVEY_WORKSPACE}/i18n
+cp po/gplugin.pot i18n/
+