[neon/snap-packaging/kde-qt6-snap] debian: test again

Carlos De Maine null at kde.org
Thu Apr 18 23:58:08 BST 2024


Git commit 8a22c67ad3c808d1c90ef667eca048e5e5dfb4af by Carlos De Maine.
Committed on 18/04/2024 at 22:57.
Pushed by carlosdem into branch 'master'.

test again

M  +3    -2    debian/.gitlab-ci-neon.yml
A  +15   -0    debian/snap-snapcraft-destructive.yml
A  +15   -0    debian/snap-snapcraft-lxd.yml
A  +25   -0    debian/snap_base.yml

https://invent.kde.org/neon/snap-packaging/kde-qt6-snap/-/commit/8a22c67ad3c808d1c90ef667eca048e5e5dfb4af

diff --git a/debian/.gitlab-ci-neon.yml b/debian/.gitlab-ci-neon.yml
index ae7d700..987961d 100644
--- a/debian/.gitlab-ci-neon.yml
+++ b/debian/.gitlab-ci-neon.yml
@@ -4,5 +4,6 @@
 include:
   - project: sysadmin/ci-utilities
     file:
-      - /gitlab-templates/snap-snapcraft-destructive.yml
-      - /gitlab-templates/snap-snapcraft-lxd.yml
+#      - /gitlab-templates/snap-snapcraft-destructive.yml
+#      - /gitlab-templates/snap-snapcraft-lxd.yml
+  - local: snap_snapcraft-lxd.yml
diff --git a/debian/snap-snapcraft-destructive.yml b/debian/snap-snapcraft-destructive.yml
new file mode 100644
index 0000000..552488e
--- /dev/null
+++ b/debian/snap-snapcraft-destructive.yml
@@ -0,0 +1,15 @@
+include:
+  - project: sysadmin/ci-utilities
+    file:
+      -/gitlab-templates/blocks/workflow.yml
+  - local: snap_base.yml
+
+snap_snapcraft_destructive:
+  extends: .snap_base
+  inherit:
+    default: true
+  script:
+    - echo building $KDE_SNAP_MODULE_NAME with --destructive-mode ...
+    - snapcraft whoami
+    - snapcraft --destructive-mode --verbosity=debug
+  interruptible: true
diff --git a/debian/snap-snapcraft-lxd.yml b/debian/snap-snapcraft-lxd.yml
new file mode 100644
index 0000000..b5baef8
--- /dev/null
+++ b/debian/snap-snapcraft-lxd.yml
@@ -0,0 +1,15 @@
+include:
+  - project: sysadmin/ci-utilities
+    file:
+      -/gitlab-templates/blocks/workflow.yml
+  - local: snap_base.yml
+
+snap_snapcraft_lxc:
+  extends: .snap_base
+  inherit:
+    default: true
+  script:
+    - echo building $KDE_SNAP_MODULE_NAME with --use-lxd ...
+    - snapcraft whoami
+    - snapcraft  --use-lxd --verbosity=debug
+  interruptible: true
diff --git a/debian/snap_base.yml b/debian/snap_base.yml
new file mode 100644
index 0000000..01d9c71
--- /dev/null
+++ b/debian/snap_base.yml
@@ -0,0 +1,25 @@
+.snap_base:
+  stage: build
+  tags:
+    - Snap
+  variables:
+    KDE_SNAP_MODULE_NAME: ${CI_PROJECT_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
+  artifacts:
+    name: Snap artifacts
+    expose_as: 'Snaps'
+    when: always
+    paths:
+      - "${KDE_SNAP_MODULE_NAME}*.snap"
+      - "kde-neon-core-dangerous-amd64.tar.gz"
+      - "kde-neon-core-signed-amd64.tar.gz"
+      - "task.log"
+      - "task-debug.log"
+    expire_in: 7 days


More information about the Neon-commits mailing list