From fe76b97de132d70db8f34877b7b48dc0ae705c2a Mon Sep 17 00:00:00 2001
From: Christopher Obbard <chris.obbard@collabora.com>
Date: Fri, 27 Nov 2020 13:38:03 +0000
Subject: [PATCH] image-builder: Run smoke test on kvm runner

Run the image-builder smoke-test on a kvm runner and make sure that by
debos runs the recipe using the fakemachine kvm backend.

Signed-off-by: Christopher Obbard <chris.obbard@collabora.com>
---
 .gitlab-ci.yml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7f00a73..0280784 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -144,6 +144,13 @@ test-image-builder-shared-runner:
   script:
     - debos -t osname:${DISTRO} -t suite:${RELEASE} -t mirror:"${MIRROR}" -t required_backend:uml image-builder/test-recipe.yaml
 
+test-image-builder-kvm-runner:
+  extends: test-image-builder-shared-runner
+  tags:
+    - kvm
+  script:
+    - debos -t osname:${DISTRO} -t suite:${RELEASE} -t mirror:"${MIRROR}" -t required_backend:kvm image-builder/test-recipe.yaml
+
 test-flatdeb-builder:
   stage: image test
   needs:
@@ -204,6 +211,7 @@ publish-image-builder-docker-image:
   stage: publish images
   needs:
      - test-image-builder-shared-runner
+     - test-image-builder-kvm-runner
   variables:
     image: image-builder
 
-- 
GitLab