[neon/snap-packaging/kf6-snap] debian: get it running

Carlos De Maine null at kde.org
Fri Apr 19 00:16:46 BST 2024


Git commit 8519e9509491b76b69807da9bdee67d78e894e85 by Carlos De Maine.
Committed on 18/04/2024 at 23:16.
Pushed by carlosdem into branch 'master'.

get it running

A  +25   -0    debian/snap-base.yml
A  +14   -0    debian/snap-snapcraft-destructive.yml
A  +14   -0    debian/snap-snapcraft-lxd.yml

https://invent.kde.org/neon/snap-packaging/kf6-snap/-/commit/8519e9509491b76b69807da9bdee67d78e894e85

diff --git a/debian/snap-base.yml b/debian/snap-base.yml
new file mode 100644
index 0000000..b838f0e
--- /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
diff --git a/debian/snap-snapcraft-destructive.yml b/debian/snap-snapcraft-destructive.yml
new file mode 100644
index 0000000..e88deb8
--- /dev/null
+++ b/debian/snap-snapcraft-destructive.yml
@@ -0,0 +1,14 @@
+include:
+  - project: sysadmin/ci-utilities
+    file:
+      - /gitlab-templates/blocks/workflow.yml
+  - local: debian/snap-base.yml
+
+snap_snapcraft_destructive:
+  extends: .snap_base
+  inherit:
+    default: true
+  script:
+    - echo building $KDE_SNAP_MODULE_NAME with --destructive-mode ...
+    - 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..2440cf4
--- /dev/null
+++ b/debian/snap-snapcraft-lxd.yml
@@ -0,0 +1,14 @@
+include:
+  - project: sysadmin/ci-utilities
+    file:
+      - /gitlab-templates/blocks/workflow.yml
+  - local: debian/snap-base.yml
+
+snap_snapcraft_lxc:
+  extends: .snap_base
+  inherit:
+    default: true
+  script:
+    - echo building $KDE_SNAP_MODULE_NAME with --use-lxd ...
+    - snapcraft  --use-lxd --verbosity=debug
+  interruptible: true


More information about the Neon-commits mailing list