summaryrefslogtreecommitdiff
path: root/.apkfoundry/master/build
diff options
context:
space:
mode:
Diffstat (limited to '.apkfoundry/master/build')
-rwxr-xr-x.apkfoundry/master/build27
1 files changed, 27 insertions, 0 deletions
diff --git a/.apkfoundry/master/build b/.apkfoundry/master/build
new file mode 100755
index 000000000..88b56358d
--- /dev/null
+++ b/.apkfoundry/master/build
@@ -0,0 +1,27 @@
+#!/bin/sh -e
+# vi:noet
+# Disable colors if logging to a separate file (see below)
+#export USE_COLORS=
+
+. /usr/share/abuild/functions.sh
+. "$AF_LIBEXEC/af-functions"
+
+# Logging each build to a separate file: (make sure to update
+# .gitlab-ci.yml to save artifacts if necessary):
+#
+#af_loginit -at
+
+printf "${STRONG}>>> Upgrading container${NORMAL}\n" >&2
+$SUDO_APK upgrade --available --latest
+
+printf "${STRONG}>>> Adding extra dependencies${NORMAL}\n" >&2
+case "$1" in
+# configure: error: GNAT is required to build ada
+system/gcc) $SUDO_APK add -t .makedepends-gcc-self gcc-gnat;;
+esac
+
+printf "${STRONG}>>> abuild -r${NORMAL}\n" >&2
+af_abuild
+
+printf "${STRONG}>>> checkapk${NORMAL}\n" >&2
+"$AF_LIBEXEC/checkapk"