[neon/snap-packaging/plasma-desktop-session-snap/ci-prototype] debian: use rules
Carlos De Maine
null at kde.org
Fri Apr 26 11:22:14 BST 2024
Git commit 25560b065a5937c4fe64246bc1987b821ad0ebef by Carlos De Maine.
Committed on 26/04/2024 at 10:22.
Pushed by carlosdem into branch 'ci-prototype'.
use rules
M +14 -6 debian/snap-snapcraft-lxc.yml
https://invent.kde.org/neon/snap-packaging/plasma-desktop-session-snap/-/commit/25560b065a5937c4fe64246bc1987b821ad0ebef
diff --git a/debian/snap-snapcraft-lxc.yml b/debian/snap-snapcraft-lxc.yml
index e3a0817..deab095 100644
--- a/debian/snap-snapcraft-lxc.yml
+++ b/debian/snap-snapcraft-lxc.yml
@@ -11,10 +11,18 @@ snap_snapcraft_lxc:
script:
- echo building $KDE_SNAP_MODULE_NAME with --use-lxd ...
- snapcraft clean
- - >
- if [ "$KDE_SNAP_MODULE_NAME" == "plasma-desktop-session-snap" ]; then
- export SNAPCRAFT_BUILD_ENVIRONMENT=lxd && snapcraft --verbose
- else
- snapcraft --use-lxd --verbosity=verbose
- fi
+ 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
interruptible: true
More information about the Neon-commits
mailing list