[vlc-commits] CI: Added snap job

Konstantin Pavlov git at videolan.org
Fri Mar 13 20:54:40 CET 2020


vlc | branch: master | Konstantin Pavlov <thresh at videolan.org> | Fri Mar 13 22:50:32 2020 +0300| [75cd97f6b1659e0dea16f18ef073f34bafe67911] | committer: Konstantin Pavlov

CI: Added snap job

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=75cd97f6b1659e0dea16f18ef073f34bafe67911
---

 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 5ca458440a..47e6c569a9 100644
--- a/extras/ci/gitlab-ci.yml
+++ b/extras/ci/gitlab-ci.yml
@@ -17,11 +17,16 @@ variables:
     VLC_WIN_LLVM_IMAGE: registry.videolan.org/vlc-debian-llvm-mingw:20190621125349
     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
@@ -148,6 +153,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