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




commit 030b8b1e5964974b4f25325a4623ef1324877657
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 | 65 +++++++++++++++++++++++++++++++---------------------------
 1 file changed, 35 insertions(+), 30 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8e91cf458f..dc7509dead 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
@@ -35,6 +37,7 @@ deps-debian/testing:
         libjson-glib-dev
         libgexiv2-dev
         libgirepository1.0-dev
+        libgtk2.0-dev
         liblcms2-dev
         libopenexr-dev
         libraw-dev
@@ -42,10 +45,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 +71,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
@@ -121,7 +156,6 @@ deps-debian/testing:
         poppler-data
         python2
         python-dev
-        wget
         xauth
         xvfb
     - export PKG_CONFIG_PATH="${INSTALL_PREFIX}/lib/pkgconfig:${INSTALL_PREFIX}/share/pkgconfig"
@@ -141,41 +175,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]