[neon/snap-packaging/qt6-snap-runtime] debian: test the template

Carlos De Maine null at kde.org
Tue Apr 16 08:02:35 BST 2024


Git commit 9006c73788feaa004c25ad9eecfc46a802e25c22 by Carlos De Maine.
Committed on 16/04/2024 at 07:02.
Pushed by carlosdem into branch 'master'.

test the template

M  +68   -5    debian/.gitlab-ci-neon.yml

https://invent.kde.org/neon/snap-packaging/qt6-snap-runtime/-/commit/9006c73788feaa004c25ad9eecfc46a802e25c22

diff --git a/debian/.gitlab-ci-neon.yml b/debian/.gitlab-ci-neon.yml
index 9112b00..529632f 100644
--- a/debian/.gitlab-ci-neon.yml
+++ b/debian/.gitlab-ci-neon.yml
@@ -3,8 +3,71 @@ include:
     file:
       - /gitlab-templates/blocks/workflow.yml
 
-build-job:
-    tags:
-        - Snap
-    stage: build
-    script: snapcraft --destructive-mode
\ No newline at end of file
+snap:
+  rules:
+  stage: build
+  tags:
+    - Snap
+  variables:
+    name: KDE_SNAP_BUILD_TYPE
+    value: "destructive"
+    options:
+      destructive
+      lxc
+      image-dangerous
+      image-signed
+    description: "The Snap build. Set to 'destructive' by default."
+    KDE_SNAP_MODULE_NAME: ${CI_PROJECT_NAME}
+    KDE_SNAP_BUILD_PIPELINE_NAME: ""
+    SNAPCRAFT_BUILD_ENVIRONMENT: "host"
+    SNAPCRAFT_MANAGED_MODE: "y"
+  interruptible: true
+  before_script:
+    - git clone https://invent.kde.org/sysadmin/ci-utilities.git --depth=1
+    - git clone https://invent.kde.org/sysadmin/repo-metadata.git ci-utilities/repo-metadata/ --depth=1
+  script:
+    - git config --global --add safe.directory $CI_PROJECT_DIR
+
+snapcraft_destructive:
+  script:
+    - snapcraft whoami
+    - echo building $KDE_SNAP_MODULE_NAME in $KDE_SNAP_BUILD_TYPE mode
+    - snapcraft --destructive
+  interruptible: true
+  rules:
+    - if: $KDE_SNAP_BUILD_TYPE == "destructive"
+      interruptible: false  # Override interruptible defined at the job level.
+    - when: on_success
+
+snapcraft_lxc:
+  script:
+    - snapcraft whoami
+    - echo building $KDE_SNAP_MODULE_NAME in $KDE_SNAP_BUILD_TYPE mode ...
+    - snapcraft --lxc
+  interruptible: true
+  rules:
+    - if: $KDE_SNAP_BUILD_TYPE == "lxc"  
+      interruptible: false  # Override interruptible defined at the job level.
+    - when: on_success
+
+ubuntu_image_dangerous:
+  script:
+    - snapcraft whoami
+    - echo building $KDE_SNAP_MODULE_NAME in $KDE_SNAP_BUILD_TYPE mode ...
+    - make dangerous
+  interruptible: true
+  rules:
+    - if: '$KDE_SNAP_BUILD_TYPE == "image-dangerous"'
+      interruptible: false  # Override interruptible defined at the job level.
+    - when: on_success
+  
+ubuntu_image_signed:
+  script:
+    - snapcraft whoami
+    - echo building $KDE_SNAP_MODULE_NAME in $KDE_SNAP_BUILD_TYPE mode ...
+    - make signed
+  interruptible: true
+  rules:
+    - if: $KDE_SNAP_BUILD_TYPE == "image-signed"
+      interruptible: false  # Override interruptible defined at the job level.
+    - when: on_success
\ No newline at end of file


More information about the Neon-commits mailing list