[gegl] gitlab-ci: Add a test job using opencl



commit 5ab8109bc27c3762f4a1c2385e5cdb86b266bc3f
Author: Jan Vesely <jano vesely gmail com>
Date:   Sun Mar 24 13:58:37 2019 -0400

    gitlab-ci: Add a test job using opencl
    
    Allow opencl job to fail
    Signed-off-by: Jan Vesely <jano vesely gmail com>

 .gitlab-ci.yml | 45 +++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 43 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c6b28b6b6..69f06befc 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,5 @@
 stages:
-  - babl
+  - dependencies
   - gegl
 
 variables:
@@ -13,7 +13,7 @@ cache:
 image: archlinux/base:latest
 
 .babl-base:
-  stage: babl
+  stage: dependencies
   artifacts:
     paths:
     - $BABL_DIR
@@ -59,6 +59,30 @@ babl-min-meson:
     - ninja -C _build
     - ninja -C _build install
 
+intel-ocl-runtime:
+  stage: dependencies
+  artifacts:
+    paths:
+    - ./*.pkg.tar.xz
+  variables:
+    GIT_DEPTH: "1"
+  before_script:
+    - pacman -Syu --noconfirm --needed --cachedir `pwd`/_pacman_cache git base-devel
+  script:
+    - 'echo "nobody ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers'
+    - git clone https://aur.archlinux.org/ncurses5-compat-libs.git
+    - cd ncurses5-compat-libs
+    - chown nobody -R .
+    - sudo -u nobody makepkg -s --skippgpcheck --noconfirm
+    - pacman -U --noconfirm ./*.pkg.tar.xz
+    - mv ./*.pkg.tar.xz ../
+    - cd ..
+    - git clone https://aur.archlinux.org/intel-opencl-runtime.git
+    - cd intel-opencl-runtime
+    - chown nobody -R .
+    - sudo -u nobody makepkg -s --noconfirm
+    - mv ./*.pkg.tar.xz ../
+
 .build-gegl:
   stage: gegl
   variables:
@@ -137,3 +161,20 @@ build-all-min-meson:
   extends: .build-all
   dependencies:
     - babl-min-meson
+
+opencl-build-all-git-meson:
+  extends: .build-all
+  allow_failure: true
+  variables:
+    GEGL_USE_OPENCL: "cpu"
+  script:
+   - pacman --noconfirm -U ./*.pkg.tar.xz
+   - pacman -Syu --noconfirm --needed --cachedir `pwd`/_pacman_cache ocl-icd
+   - mkdir _build
+   - cd _build
+   - PKG_CONFIG_PATH=$BABL_PREFIX/lib/pkgconfig ../autogen.sh $CONFIG_OPTIONS
+   - LD_LIBRARY_PATH="$BABL_PREFIX/lib:$LD_LIBRARY_PATH" make
+   - LD_LIBRARY_PATH="$BABL_PREFIX/lib:$LD_LIBRARY_PATH" make check
+  dependencies:
+    - babl-git-meson
+    - intel-ocl-runtime


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