diff options
Diffstat (limited to 'ci/semaphore.sh')
-rwxr-xr-x | ci/semaphore.sh | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/ci/semaphore.sh b/ci/semaphore.sh index 759b908..e5d6460 100755 --- a/ci/semaphore.sh +++ b/ci/semaphore.sh @@ -6,6 +6,17 @@ 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 +testimg() +{ + img="$1" + sudo python3.6 ./mkosi --default ./mkosi.files/mkosi."$img" + test -f mkosi.output/"$img".raw + rm mkosi.output/"$img".raw +} -test -f ubuntu.raw +# Only test ubuntu images for now, as semaphore is based on Ubuntu +for i in ./mkosi.files/mkosi.ubuntu* +do + imgname="$(basename "$i" | cut -d. -f 2-)" + testimg "$imgname" +done |