[gimp/wip/Jehan/shorter-distcheck] gitlab-ci: make distcheck depend on the build.



commit 08b3cc16436d134892f6512b22152c813015966e
Author: Jehan <jehan girinstud io>
Date:   Thu Aug 6 14:53:09 2020 +0200

    gitlab-ci: make distcheck depend on the build.
    
    Instead of redoing a build, let's reuse the existing normal autotools
    build. This should shave off more time from the distcheck step
    hopefully.

 .gitlab-ci.yml | 86 ++++++++++++++++++++++++++++++++++++++++++++--------------
 1 file changed, 66 insertions(+), 20 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 51c1ed75ad..79116ec264 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,6 +3,7 @@ image: debian:testing
 stages:
   - dependencies
   - gimp
+  - distribution
 
 variables:
   GIT_DEPTH: "1"
@@ -109,7 +110,7 @@ deps-debian/testing:
     name: "app-build-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
     paths:
     - _build
-    #- "${INSTALL_DIR}"
+    - "${INSTALL_DIR}"
   before_script:
     - apt-get update
     - apt-get install -y --no-install-recommends
@@ -178,27 +179,72 @@ gimp-debian/testing-autotools:
     - make -j "$(nproc)"
     - make check
 
-gimp-debian/testing-autotools-distcheck:
+distcheck:
   extends: .gimp-debian/testing-base
+  stage: distribution
+  artifacts:
+    expire_in: 1 week
+    when: always
+    name: "app-dist-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
+    paths:
+    - _build
+  before_script:
+    - apt-get update
+    - apt-get install -y --no-install-recommends
+        at-spi2-core
+        build-essential
+        desktop-file-utils
+        ffmpeg
+        hicolor-icon-theme
+        ghostscript
+        git
+        glib-networking
+        gobject-introspection
+        gtk-doc-tools
+        intltool
+        iso-codes
+        libappstream-glib-dev
+        libbz2-dev
+        libdbus-glib-1-dev
+        libexif-dev
+        libgexiv2-dev
+        libgirepository1.0-dev
+        libgtk2.0-bin
+        libgtk2.0-dev
+        libgudev-1.0-dev
+        libjson-glib-dev
+        liblcms2-dev
+        liblzma-dev
+        libmng-dev
+        libmypaint-dev
+        libopenexr-dev
+        libpoppler-glib-dev
+        libraw19
+        librsvg2-dev
+        libspiro-dev
+        libtiff-dev
+        libtool
+        libumfpack5
+        libwebp-dev
+        libwmf-dev
+        libxmu-dev
+        libxpm-dev
+        meson
+        mypaint-brushes
+        poppler-data
+        python2
+        python-dev
+        xauth
+        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"
   script:
-    - mkdir _build
     - cd _build
-    - ../autogen.sh
-        --prefix="${INSTALL_PREFIX}"
-        --enable-debug
-        --disable-python
-        --enable-gtk-doc
-        --without-jpeg2000
-        --without-libmng
-        --without-cairo-pdf
-        --without-openexr
-        --without-webp
-        --without-wmf
-        --without-libxpm
-        --without-xmc
-        --without-gudev
-        --without-linux-input
-        --without-print
-    - make -j "$(nproc)"
     - make distcheck
   allow_failure: true
+  needs: ["gimp-debian/testing-autotools"]


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