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



commit 964db6b738e2ed5404fe25c1d35e20e85a9bd582
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 | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ab6d1d13e..30f0abfe4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -347,6 +347,34 @@ 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
+    - export PATH=/Users/gitlabrunner/Library/Python/3.7/bin:$PATH
+  script:
+    - meson ${MESON_COMMON_OPTIONS}
+            --werror
+            _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]