[neon/snap-packaging/plasma-desktop-session-snap/ci-prototype] debian: back to a new and improved script

Carlos De Maine null at kde.org
Fri Apr 26 11:34:34 BST 2024


Git commit 2cdd48a7d675ff4320204f370d5feb497fc9927e by Carlos De Maine.
Committed on 26/04/2024 at 10:34.
Pushed by carlosdem into branch 'ci-prototype'.

back to a new and improved script

M  +9    -15   debian/snap-snapcraft-lxc.yml

https://invent.kde.org/neon/snap-packaging/plasma-desktop-session-snap/-/commit/2cdd48a7d675ff4320204f370d5feb497fc9927e

diff --git a/debian/snap-snapcraft-lxc.yml b/debian/snap-snapcraft-lxc.yml
index deab095..8403fe4 100644
--- a/debian/snap-snapcraft-lxc.yml
+++ b/debian/snap-snapcraft-lxc.yml
@@ -9,20 +9,14 @@ snap_snapcraft_lxc:
   inherit:
     default: true
   script:
-    - echo building $KDE_SNAP_MODULE_NAME with --use-lxd ...
     - snapcraft clean
-  rules:
-    legacy: 
-      if:
-        - $KDE_SNAP_MODULE_NAME = plasma-desktop-session-snap
-        - SNAPCRAFT_BUILD_ENVIRONMENT=lxd 
-      script: 
-      - snapcraft --verbose
-      when: 
-        - on-success
-    
-    current:
-      if:  
-      - $KDE_SNAP_MODULE_NAME = plasma-desktop-session-snap
-      script:    snapcraft  --use-lxd --verbosity=verbose
+    - |
+      if [ "$$KDE_SNAP_MODULE_NAME" == "plasma-desktop-session-snap" ]; then
+        export SNAPCRAFT_BUILD_ENVIRONMENT=lxd
+        echo building $KDE_SNAP_MODULE_NAME with SNAPCRAFT_BUILD_ENVIRONMENT=lxd ...
+        snapcraft --verbose
+      else
+        echo building $KDE_SNAP_MODULE_NAME with --use-lxd build flag ...
+        snapcraft  --use-lxd --verbosity=verbose
+      fi
   interruptible: true


More information about the Neon-commits mailing list