[gjs: 4/7] CI: Add meson CI job



commit d7782acee752dad04505035f05fdb56cd645950a
Author: Philip Chimento <philip endlessm com>
Date:   Thu Aug 29 10:04:05 2019 +0300

    CI: Add meson CI job
    
    During the transitional period when we have both Autotools and Meson
    build systems, we should have a Meson job in order to make sure that
    a change to one build system doesn't break the other.
    
    When removing the Autotools build system, this job should be removed and
    all the other jobs should be ported to use Meson.

 .gitlab-ci.yml | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 587bcd57..5bdb5118 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -144,6 +144,33 @@ build_minimal:
   except:
     - schedules
 
+build_meson:
+  stage: test
+  image: registry.gitlab.gnome.org/gnome/gjs:fedora.mozjs60
+  variables:
+    TASK_ID: "fedora-x86_64-gcc-meson-check"
+    PKG_CONFIG_PATH: /usr/local/lib/pkgconfig
+    BUILD_OPTS: >-
+      -Dcairo=enabled -Dreadline=enabled -Dprofiler=enabled
+      -Ddtrace=true -Dsystemtap=true -Dverbose_logs=true
+  when: on_success
+  except:
+    - schedules
+  artifacts:
+    name: log
+    when: always
+    paths:
+      - _build/compile_commands.json
+      - _build/meson-logs/*log.txt
+
+  script:
+    - *CI_header
+    - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
+    - meson _build $BUILD_OPTS
+    - ninja -C _build
+    - xvfb-run -a meson test -C _build --verbose --no-stdsplit --print-errorlogs
+    - *CI_footer
+
 # Generates
 # The Code Coverage Report
 coverage-automatic:


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