Merge branch '1416-macos-ci' into 'master'

ci: Add macOS CI runner

Closes #1416

See merge request GNOME/glib!1273
This commit is contained in:
Xavier Claessens 2020-01-14 21:09:48 +00:00
commit 547f5316e3

View File

@ -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