[vlc-commits] CI: Added snap job

Konstantin Pavlov git at videolan.org
Mon Mar 30 21:40:59 CEST 2020


vlc/vlc-3.0 | branch: master | Konstantin Pavlov <thresh at videolan.org> | Fri Mar 13 22:50:32 2020 +0300| [5feebaa111681dfc3ed18cb749582b8ddd4f73ae] | committer: Konstantin Pavlov

CI: Added snap job

(cherry picked from commit 75cd97f6b1659e0dea16f18ef073f34bafe67911)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=5feebaa111681dfc3ed18cb749582b8ddd4f73ae
---

 extras/ci/gitlab-ci.yml | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/extras/ci/gitlab-ci.yml b/extras/ci/gitlab-ci.yml
index 98574211e7..80a3a9a7af 100644
--- a/extras/ci/gitlab-ci.yml
+++ b/extras/ci/gitlab-ci.yml
@@ -16,11 +16,16 @@ variables:
     VLC_WIN64_IMAGE: registry.videolan.org/vlc-debian-win64:20190416180622
     VLC_DEBIAN_IMAGE: registry.videolan.org/vlc-debian-unstable:20191023134128
     VLC_ANDROID_IMAGE: registry.videolan.org/vlc-debian-android:20190717134531
+    VLC_SNAP_IMAGE: registry.videolan.org/vlc-ubuntu-bionic:20190627090437
 
 .variables-debian: &variables-debian
         HOST_ARCH: x86_64
         TRIPLET: $HOST_ARCH-linux-gnu
 
+.variables-snap: &variables-snap
+        HOST_ARCH: x86_64
+        TRIPLET: $HOST_ARCH-linux-gnu
+
 .variables-win32: &variables-win32
         HOST_ARCH: i686
         TRIPLET: $HOST_ARCH-w64-mingw32
@@ -131,6 +136,21 @@ debian:
         VLC_TEST_TIMEOUT=60 sh -x ./test/make_check_wrapper.sh -j4
     variables: *variables-debian
 
+#
+# Snap builds
+#
+snap:
+    extends: .docker-template
+    image:
+        name: $VLC_SNAP_IMAGE
+    script: |
+            cd extras/package/snap
+            make -f package.mak snap
+    after_script:
+        - export VLC_CONTRIB_SHA="$(extras/ci/get-contrib-sha.sh)"
+        - mv extras/package/snap/parts/vlc/build/contrib/vlc-contrib-*.tar.bz2 contrib/vlc-contrib-${TRIPLET}-${VLC_CONTRIB_SHA}.tar.bz2 2>/dev/null || true
+    variables: *variables-snap
+
 #
 # macOS
 #



More information about the vlc-commits mailing list