mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-19 23:28:54 +02:00
ci: Factor out a template for jobs which run only on the origin repo
This clarifies the intent of the `branches@GNOME/glib` selector. It introduces no functional changes. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
@@ -26,6 +26,16 @@ variables:
|
|||||||
except:
|
except:
|
||||||
- tags
|
- tags
|
||||||
|
|
||||||
|
# Some jobs run on CI runners which don’t have good isolation between CI jobs,
|
||||||
|
# and don’t have much available resource. Limit those jobs to only ones on the
|
||||||
|
# origin repository (GNOME/glib), rather than people’s forks. Code in the origin
|
||||||
|
# repository can be trusted.
|
||||||
|
.only-origin:
|
||||||
|
only:
|
||||||
|
- branches@GNOME/glib
|
||||||
|
except:
|
||||||
|
- tags
|
||||||
|
|
||||||
# Some jobs take a long time and are unlikely to find failures (or will find
|
# Some jobs take a long time and are unlikely to find failures (or will find
|
||||||
# failures which are not merge-blockers to fix), so they’re executed on a weekly
|
# failures which are not merge-blockers to fix), so they’re executed on a weekly
|
||||||
# schedule in order to save CI resources and speed up branch pipelines.
|
# schedule in order to save CI resources and speed up branch pipelines.
|
||||||
@@ -367,9 +377,8 @@ vs2017-x64-static:
|
|||||||
- "_build/${env:CI_JOB_NAME}-report.xml"
|
- "_build/${env:CI_JOB_NAME}-report.xml"
|
||||||
|
|
||||||
freebsd-12-x86_64:
|
freebsd-12-x86_64:
|
||||||
|
extends: .only-origin
|
||||||
stage: build
|
stage: build
|
||||||
only:
|
|
||||||
- branches@GNOME/glib
|
|
||||||
tags:
|
tags:
|
||||||
# To run a FreeBSD builder, install gitlab-runner package and start both
|
# To run a FreeBSD builder, install gitlab-runner package and start both
|
||||||
# gitlab-runner and dbus service because we need /var/lib/dbus/machine-id.
|
# gitlab-runner and dbus service because we need /var/lib/dbus/machine-id.
|
||||||
@@ -398,8 +407,6 @@ freebsd-12-x86_64:
|
|||||||
- meson ${MESON_COMMON_OPTIONS} --localstatedir=/var -Db_lundef=false -Diconv=external -Dxattr=false _build
|
- meson ${MESON_COMMON_OPTIONS} --localstatedir=/var -Db_lundef=false -Diconv=external -Dxattr=false _build
|
||||||
- ninja -C _build
|
- ninja -C _build
|
||||||
- bash -x ./.gitlab-ci/run-tests.sh
|
- bash -x ./.gitlab-ci/run-tests.sh
|
||||||
except:
|
|
||||||
- tags
|
|
||||||
artifacts:
|
artifacts:
|
||||||
reports:
|
reports:
|
||||||
junit: "_build/${CI_JOB_NAME}-report.xml"
|
junit: "_build/${CI_JOB_NAME}-report.xml"
|
||||||
@@ -412,9 +419,8 @@ freebsd-12-x86_64:
|
|||||||
- "_build/${CI_JOB_NAME}-report.xml"
|
- "_build/${CI_JOB_NAME}-report.xml"
|
||||||
|
|
||||||
freebsd-13-x86_64:
|
freebsd-13-x86_64:
|
||||||
|
extends: .only-origin
|
||||||
stage: build
|
stage: build
|
||||||
only:
|
|
||||||
- branches@GNOME/glib
|
|
||||||
tags:
|
tags:
|
||||||
- freebsd-13
|
- freebsd-13
|
||||||
needs: []
|
needs: []
|
||||||
@@ -428,8 +434,6 @@ freebsd-13-x86_64:
|
|||||||
- meson ${MESON_COMMON_OPTIONS} --localstatedir=/var -Db_lundef=false -Diconv=external -Dxattr=false _build
|
- meson ${MESON_COMMON_OPTIONS} --localstatedir=/var -Db_lundef=false -Diconv=external -Dxattr=false _build
|
||||||
- ninja -C _build
|
- ninja -C _build
|
||||||
- bash -x ./.gitlab-ci/run-tests.sh
|
- bash -x ./.gitlab-ci/run-tests.sh
|
||||||
except:
|
|
||||||
- tags
|
|
||||||
artifacts:
|
artifacts:
|
||||||
reports:
|
reports:
|
||||||
junit: "_build/${CI_JOB_NAME}-report.xml"
|
junit: "_build/${CI_JOB_NAME}-report.xml"
|
||||||
@@ -442,10 +446,8 @@ freebsd-13-x86_64:
|
|||||||
- "_build/${CI_JOB_NAME}-report.xml"
|
- "_build/${CI_JOB_NAME}-report.xml"
|
||||||
|
|
||||||
macos:
|
macos:
|
||||||
extends: .only-default
|
extends: .only-origin
|
||||||
stage: build
|
stage: build
|
||||||
only:
|
|
||||||
- branches@GNOME/glib
|
|
||||||
tags:
|
tags:
|
||||||
- macos
|
- macos
|
||||||
needs: []
|
needs: []
|
||||||
|
Reference in New Issue
Block a user