[glib/1416-macos-ci] WIP: ci: Add macOS CI runner



commit 076fd5a922f578b33e441010f19823308393aed4
Author: Philip Withnall <withnall endlessm com>
Date:   Tue Dec 10 12:45:51 2019 +0000

    WIP: ci: Add macOS CI runner
    
    We had one before, but the runner machine was too flaky to be useful.
    Re-add it now that the Foundation have sorted out a more reliable
    machine. (Thanks!)
    
    Signed-off-by: Philip Withnall <withnall endlessm com>
    
    Fixes: #1416

 .gitlab-ci.yml | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ab6d1d13e..bc6810716 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -347,6 +347,35 @@ freebsd-12-x86_64:
       - "_build/meson-logs"
       - "_build/${CI_JOB_NAME}-report.xml"
 
+macos:
+  extends: .only-default
+  stage: build
+  only:
+    - branches@GNOME/glib
+  tags:
+    - macos
+  before_script:
+    - pip3 install --user meson==0.49.2
+    - pip3 install --user ninja
+    - export PATH=/Users/gitlabrunner/Library/Python/3.7/bin:$PATH
+  script:
+    # FIXME: Add --werror
+    - meson ${MESON_COMMON_OPTIONS}
+            _build
+    - ninja -C _build
+    # FIXME: Multiple unit tests currently fails
+    - .gitlab-ci/run-tests.sh || true
+  artifacts:
+    reports:
+      junit: "_build/${CI_JOB_NAME}-report.xml"
+    name: "glib-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
+    when: always
+    paths:
+      - "_build/config.h"
+      - "_build/glib/glibconfig.h"
+      - "_build/meson-logs"
+      - "_build/${CI_JOB_NAME}-report.xml"
+
 coverage:
   extends: .only-default
   image: registry.gitlab.gnome.org/gnome/glib/fedora:v5


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