[gimp/wip/Jehan/classy-GIMP] gitlab-ci: don't use mypaint-brushes from Archlinux.



commit 489ec34c0d0125ab14fba05642273087e7afe445
Author: Jehan <jehan girinstud io>
Date:   Thu Aug 22 16:43:35 2019 +0200

    gitlab-ci: don't use mypaint-brushes from Archlinux.
    
    If I get it correctly, archlinux bumped the mypaint-brushes package to
    v2, which broke our CI. The v1 and v2 brushes are not the same, and they
    are not even compatible (GIMP only supports v1 brushes so far). These
    should be different packages, hence the incremented versionning.
    For the archlinux change, see also:
    
https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/mypaint-brushes&id=dfd032b3aab40a46c751bd47713fb82bf11bd984
    
    Let's just install the brushes ourselves from the correct branch.
    
    With this kind of changes, as well as the weird patches they do when
    they rename the pkg-config file of libmypaint, I think we should
    consider not rely on this distribution for our CI.

 .gitlab-ci.yml | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7024f23e44..555acf44c0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,7 @@
 image: archlinux/base:latest
 
 stages:
+  - mypaint-brushes
   - babl
   - gegl
   - gimp
@@ -14,6 +15,32 @@ cache:
   paths:
   - _pacman_cache
 
+.mypaint-brushes-base:
+  stage: mypaint-brushes
+  artifacts:
+    paths:
+    - "${INSTALL_DIR}"
+  variables:
+    GIT_DEPTH: "5"
+  before_script:
+    - pacman -Syu --noconfirm --needed --cachedir "${PACMAN_CACHE}"
+        git
+        base-devel
+    - git clone --depth="${GIT_DEPTH}" https://github.com/mypaint/mypaint-brushes.git _mypaint-brushes
+
+mypaint-brushes-git:
+  extends: .mypaint-brushes-base
+  script:
+    - cd _mypaint-brushes
+    - git checkout v1.3.x
+    - ./autogen.sh
+    - mkdir _build
+    - cd _build
+    - ../configure
+        --prefix="${INSTALL_PREFIX}"
+    - make -j "$(nproc)"
+    - make install
+
 .babl-base:
   stage: babl
   artifacts:
@@ -181,6 +208,7 @@ gegl-git:
 build-git-autotools:
   extends: .gimp-autotools
   dependencies:
+    - mypaint-brushes-git
     - babl-git
     - gegl-git
 


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