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



commit 046bb26c52c3d043b7a20cab3e5082d4e2c163d6
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 major 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 | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7024f23e44..ba17df20d5 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,31 @@ 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 --branch=v1.3.x --depth="${GIT_DEPTH}" https://github.com/mypaint/mypaint-brushes.git 
_mypaint-brushes
+
+mypaint-brushes-git:
+  extends: .mypaint-brushes-base
+  script:
+    - cd _mypaint-brushes
+    - ./autogen.sh
+    - mkdir _build
+    - cd _build
+    - ../configure
+        --prefix="${INSTALL_PREFIX}"
+    - make -j "$(nproc)"
+    - make install
+
 .babl-base:
   stage: babl
   artifacts:
@@ -181,6 +207,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]