[gimp/wip/Jehan/shorter-distcheck] gitlab-ci: move pygtk build into deps-debian/testing step.




commit 81a7a885664a630a1f86cc3c365091d1f509e64f
Author: Jehan <jehan girinstud io>
Date:   Thu Aug 6 01:14:27 2020 +0200

    gitlab-ci: move pygtk build into deps-debian/testing step.
    
    This will make Python plug-in available for the main build step.
    Also it should make the distcheck step shorter, hence hopefully will
    prevent it from timing out so often.

 .gitlab-ci.yml | 66 ++++++++++++++++++++++++++++++----------------------------
 1 file changed, 34 insertions(+), 32 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8e91cf458f..a622ffe181 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -27,6 +27,8 @@ deps-debian/testing:
   before_script:
     - apt-get update
     - apt-get install -y --no-install-recommends
+        autoconf
+        automake
         build-essential
         git
         ffmpeg
@@ -42,10 +44,15 @@ deps-debian/testing:
         libspiro-dev
         libsuitesparse-dev
         libtiff5-dev
+        libtool
         luajit
+        m4
         meson
+        python2
         python3
+        python-dev
         valac
+        wget
     - 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
@@ -63,6 +70,33 @@ deps-debian/testing:
     - meson --prefix="${INSTALL_PREFIX}" _build
     - ninja -C _build
     - ninja -C _build install
+    # Building pygtk2 as it is not available in Debian testing anymore.
+    - cd ../build/gitlab-ci
+    - wget https://cairographics.org/releases/py2cairo-1.10.0.tar.bz2
+    - wget https://download.gnome.org/sources/pygobject/2.28/pygobject-2.28.7.tar.xz
+    - wget https://download.gnome.org/sources/pygtk/2.24/pygtk-2.24.0.tar.gz
+    - sha256sum -c deps.sha256sum
+    - export PYTHON=/usr/bin/python2
+    # py2cairo
+    - tar xjf py2cairo-1.10.0.tar.bz2
+    - cd py2cairo-1.10.0/
+    - libtoolize --force
+    - aclocal
+    - autoheader
+    - automake --force-missing --add-missing --foreign
+    - autoconf
+    - ./configure --prefix="${INSTALL_PREFIX}" && make && make install
+    - cd ..
+    # pygobject
+    - tar xf pygobject-2.28.7.tar.xz
+    - cd pygobject-2.28.7/
+    - ./configure --prefix="${INSTALL_PREFIX}" && make && make install
+    - cd ..
+    # pygtk
+    - tar xzf pygtk-2.24.0.tar.gz
+    - cd pygtk-2.24.0/
+    - patch -p1 < ../pygtk-Drop-the-PangoFont-find_shaper-virtual-method.patch
+    - ./configure --prefix="${INSTALL_PREFIX}" && make && make install
 
 .gimp-debian/testing-base:
   stage: gimp
@@ -119,9 +153,6 @@ deps-debian/testing:
         meson
         mypaint-brushes
         poppler-data
-        python2
-        python-dev
-        wget
         xauth
         xvfb
     - export PKG_CONFIG_PATH="${INSTALL_PREFIX}/lib/pkgconfig:${INSTALL_PREFIX}/share/pkgconfig"
@@ -141,41 +172,12 @@ gimp-debian/testing-autotools:
     - ../autogen.sh
         --prefix="${INSTALL_PREFIX}"
         --enable-debug
-        --disable-python
     - make -j "$(nproc)"
     - make check
 
 gimp-debian/testing-autotools-distcheck:
   extends: .gimp-debian/testing-base
   script:
-    # Building pygtk2 as it is not available in Debian testing anymore.
-    - cd build/gitlab-ci
-    - wget https://cairographics.org/releases/py2cairo-1.10.0.tar.bz2
-    - wget https://download.gnome.org/sources/pygobject/2.28/pygobject-2.28.7.tar.xz
-    - wget https://download.gnome.org/sources/pygtk/2.24/pygtk-2.24.0.tar.gz
-    - sha256sum -c deps.sha256sum
-    - export PYTHON=/usr/bin/python2
-    # py2cairo
-    - tar xjf py2cairo-1.10.0.tar.bz2
-    - cd py2cairo-1.10.0/
-    - libtoolize --force
-    - aclocal
-    - autoheader
-    - automake --force-missing --add-missing --foreign
-    - autoconf
-    - ./configure --prefix="${INSTALL_PREFIX}" && make && make install
-    - cd ..
-    # pygobject
-    - tar xf pygobject-2.28.7.tar.xz
-    - cd pygobject-2.28.7/
-    - ./configure --prefix="${INSTALL_PREFIX}" && make && make install
-    - cd ..
-    # pygtk
-    - tar xzf pygtk-2.24.0.tar.gz
-    - cd pygtk-2.24.0/
-    - patch -p1 < ../pygtk-Drop-the-PangoFont-find_shaper-virtual-method.patch
-    - ./configure --prefix="${INSTALL_PREFIX}" && make && make install
-    - cd ../../..
     # Actual build.
     - mkdir _build
     - cd _build


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