From ef7cc1b46d1b4a8d9222ebc26ea506634a93aec5 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 11 Nov 2018 21:05:43 +0100 Subject: [PATCH] ci: add simple script for running CI tests in semaphore For now, it just builds an Ubuntu image --- ci/semaphore.sh | 11 +++++++++++ mkosi.files/mkosi.ubuntu | 12 ++++++++++++ 2 files changed, 23 insertions(+) create mode 100755 ci/semaphore.sh create mode 100644 mkosi.files/mkosi.ubuntu 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 -- 2.47.2