[gimp] gitlab-ci: port our main CI to Debian testing.



commit df492fa89891f290d958c426d67fe19e729e7e20
Author: Jehan <jehan girinstud io>
Date:   Wed Jan 1 19:57:06 2020 +0100

    gitlab-ci: port our main CI to Debian testing.
    
    The old custom ArchLinux got broken (apparently by some package
    signature verification which fails, and obviously we don't want to
    bypass these for security reasons).
    
    I took the opportunity to port to Debian testing because this is GIMP's
    base distribution for support (basically dependency versions must be in
    Debian testing) so it makes sense that our CI is based off it as well.
    
    Note though that I am not against additional CI tests so if someone
    absolutely wants to get the Archlinux-based CI back and thinks it gets
    us some additional worthy test, feel free to fix whatever was broken
    then we may add it back (having both Debian testing and Archlinux CI).

 .gitlab-ci.yml | 136 +++++++++++++++++++++++++++++++--------------------------
 1 file changed, 73 insertions(+), 63 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f4e2379523..80bafaaeee 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,4 +1,4 @@
-image: salamandar/archlinux-gimp:latest
+image: debian:testing
 
 stages:
   - dependencies
@@ -12,7 +12,7 @@ variables:
 
 ## GNU/Linux 64-bit CIs ##
 
-deps-linux:
+deps-debian/testing:
   stage: dependencies
   cache:
     paths:
@@ -25,33 +25,34 @@ deps-linux:
     - _babl/_build
     - _gegl/_build
   before_script:
-    - export PKG_CONFIG_PATH="${INSTALL_PREFIX}/lib/pkgconfig"
-    - export LD_LIBRARY_PATH="${INSTALL_PREFIX}/lib:${LD_LIBRARY_PATH}"
-    - export XDG_DATA_DIRS="${INSTALL_PREFIX}/share:/usr/local/share:/usr/share"
-    - pacman -Syu --noconfirm --needed --cachedir "${PACMAN_CACHE}"
+    - apt-get update
+    - apt-get install -y --no-install-recommends
+        build-essential
         git
-        base-devel
-        meson
-        lcms2
-        base-devel
         ffmpeg
+        graphviz-dev
         gobject-introspection
-        graphviz
-        jasper
-        json-glib
-        lcms2
-        libgexiv2
-        libraw
-        librsvg
-        libspiro
-        libtiff
+        libjson-glib-dev
+        libgexiv2-dev
+        libgirepository1.0-dev
+        liblcms2-dev
+        libopenexr-dev
+        libraw-dev
+        librsvg2-dev
+        libspiro-dev
+        libsuitesparse-dev
+        libtiff5-dev
         luajit
-        openexr
-        python
-        sdl2
-        suitesparse
+        meson
+        python3
+    - apt-get install -y --reinstall ca-certificates
+    - git clone --depth=${GIT_DEPTH} https://gitlab.gnome.org/GNOME/babl.git _babl
     - git clone --depth=${GIT_DEPTH} https://gitlab.gnome.org/GNOME/gegl.git _gegl
-    - git clone --depth="${GIT_DEPTH}" https://gitlab.gnome.org/GNOME/babl.git _babl
+    - export PKG_CONFIG_PATH="${INSTALL_PREFIX}/lib/pkgconfig"
+    - export PKG_CONFIG_PATH="${INSTALL_PREFIX}/lib/`gcc -print-multiarch`/pkgconfig/:$PKG_CONFIG_PATH"
+    - export LD_LIBRARY_PATH="${INSTALL_PREFIX}/lib:${LD_LIBRARY_PATH}"
+    - export LD_LIBRARY_PATH="${INSTALL_PREFIX}/lib/`gcc -print-multiarch`:$LD_LIBRARY_PATH"
+    - export XDG_DATA_DIRS="${INSTALL_PREFIX}/share:/usr/local/share:/usr/share"
   script:
     - cd _babl
     - meson -Dprefix="${INSTALL_PREFIX}" _build
@@ -62,10 +63,10 @@ deps-linux:
     - ninja -C _build
     - ninja -C _build install
 
-.gimp-base:
+.gimp-debian/testing-base:
   stage: gimp
   dependencies:
-    - deps-linux
+    - deps-debian/testing
   artifacts:
     expire_in: 1 week
     when: always
@@ -74,49 +75,58 @@ deps-linux:
     - _build
     #- "${INSTALL_DIR}"
   before_script:
-    - export PKG_CONFIG_PATH="${INSTALL_PREFIX}/lib/pkgconfig:${INSTALL_PREFIX}/share/pkgconfig"
-    - export LD_LIBRARY_PATH="${INSTALL_PREFIX}/lib:${LD_LIBRARY_PATH}"
-    - export XDG_DATA_DIRS="${INSTALL_PREFIX}/share:/usr/local/share:/usr/share"
-    - pacman -Syu --noconfirm --needed --cachedir "${PACMAN_CACHE}"
-        git
-        base-devel
-        appstream-glib
+    - apt-get update
+    - apt-get install -y --no-install-recommends
         at-spi2-core
-        at-spi2-atk
-        dbus-glib
+        build-essential
         desktop-file-utils
         ffmpeg
-        glib-networking
-        gobject-introspection
-        gtk3
         hicolor-icon-theme
-        jasper
-        lcms2
-        libexif
-        libgudev
-        libheif
-        libmng
-        libmypaint
-        librsvg
-        libwebp
-        libwmf
-        libxmu
-        libxpm
-        mypaint-brushes1
-        openexr
-        poppler-data
-        pygtk
-        alsa-lib
         ghostscript
-        poppler-glib
-        gtk-doc
+        git
+        glib-networking
+        gobject-introspection
+        gtk-doc-tools
         intltool
         iso-codes
-        xorg-server-xvfb
-  needs: ["deps-linux"]
+        libappstream-glib-dev
+        libbz2-dev
+        libdbus-glib-1-dev
+        libexif-dev
+        libgexiv2-dev
+        libgirepository1.0-dev
+        libgtk-3-bin
+        libgtk-3-dev
+        libgudev-1.0-dev
+        libjson-glib-dev
+        liblcms2-dev
+        liblzma-dev
+        libmng-dev
+        libmypaint-dev
+        libopenexr-dev
+        libpoppler-glib-dev
+        librsvg2-dev
+        libtiff-dev
+        libtool
+        libwebp-dev
+        libwmf-dev
+        libxmu-dev
+        libxpm-dev
+        meson
+        mypaint-brushes
+        poppler-data
+        xvfb
+    - export PKG_CONFIG_PATH="${INSTALL_PREFIX}/lib/pkgconfig:${INSTALL_PREFIX}/share/pkgconfig"
+    - export PKG_CONFIG_PATH="${INSTALL_PREFIX}/lib/`gcc -print-multiarch`/pkgconfig/:$PKG_CONFIG_PATH"
+    - export PKG_CONFIG_PATH="${INSTALL_PREFIX}/share/`gcc -print-multiarch`/pkgconfig/:$PKG_CONFIG_PATH"
+    - export LD_LIBRARY_PATH="${INSTALL_PREFIX}/lib:${LD_LIBRARY_PATH}"
+    - export LD_LIBRARY_PATH="${INSTALL_PREFIX}/lib/`gcc -print-multiarch`:$LD_LIBRARY_PATH"
+    - export XDG_DATA_DIRS="${INSTALL_PREFIX}/share:/usr/local/share:/usr/share"
+    - export PATH="${INSTALL_PREFIX}/bin:$PATH"
+  needs: ["deps-debian/testing"]
 
-gimp-linux-autotools:
-  extends: .gimp-base
+gimp-debian/testing-autotools:
+  extends: .gimp-debian/testing-base
   script:
     - mkdir _build
     - cd _build
@@ -129,8 +139,8 @@ gimp-linux-autotools:
     - make -j "$(nproc)"
     # - make check
 
-gimp-linux-meson:
-  extends: .gimp-base
+gimp-debian/testing-meson:
+  extends: .gimp-debian/testing-base
   script:
     - meson _build
       --prefix="${INSTALL_PREFIX}"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]