From: Lennart Poettering Date: Sun, 11 Nov 2018 20:05:43 +0000 (+0100) Subject: ci: add simple script for running CI tests in semaphore X-Git-Tag: v5~32^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F286%2Fhead;p=thirdparty%2Fmkosi.git ci: add simple script for running CI tests in semaphore For now, it just builds an Ubuntu image --- diff --git a/ci/semaphore.sh b/ci/semaphore.sh new file mode 100755 index 000000000..dff783124 --- /dev/null +++ b/ci/semaphore.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +set -ex + +sudo add-apt-repository --yes ppa:jonathonf/python-3.6 +sudo apt --yes update +sudo apt --yes install python3.6 debootstrap systemd-container squashfs-tools + +sudo python3.6 ./mkosi --default ./mkosi.files/mkosi.ubuntu + +test -f image.raw diff --git a/mkosi.files/mkosi.ubuntu b/mkosi.files/mkosi.ubuntu new file mode 100644 index 000000000..5706da46a --- /dev/null +++ b/mkosi.files/mkosi.ubuntu @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: LGPL-2.1+ + +[Distribution] +Distribution=ubuntu +Release=xenial + +[Output] +Format=raw_squashfs + +[Packages] +Packages= + tzdata