-
Notifications
You must be signed in to change notification settings - Fork 11
/
.gitlab-ci.yml
34 lines (31 loc) · 1.15 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
include:
- component: gitlab.gnome.org/GNOME/citemplates/release-service@master
inputs:
dist-job-name: "build"
tarball-artifact-path: "${TARBALL_ARTIFACT_PATH}"
variables:
MESON_BUILD_DIR: _build
_DESTDIR: "$CI_PROJECT_DIR/destdir/"
TARBALL_ARTIFACT_PATH: "${MESON_BUILD_DIR}/meson-dist/${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.tar.xz"
GIT_DEPTH: "5"
build:
image: "quay.io/gnome_infrastructure/gnome-build-meta:core-nightly"
script:
- git config --global --add safe.directory $CI_PROJECT_DIR
- meson setup "${MESON_BUILD_DIR}"
- meson compile -C "${MESON_BUILD_DIR}"
- mkdir -p $_DESTDIR
- meson install -C ${MESON_BUILD_DIR} --no-rebuild --destdir=${_DESTDIR}
- meson dist -C "${MESON_BUILD_DIR}" --no-tests --include-subprojects
after_script:
# Cleanup the destdir and thus container volume once we are done
- rm -rvf $_DESTDIR
artifacts:
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
when: always
paths:
- "${TARBALL_ARTIFACT_PATH}"
- "${MESON_BUILD_DIR}/meson-logs/"
- "${MESON_BUILD_DIR}/meson-dist/"
reports:
junit: "${MESON_BUILD_DIR}/meson-logs/testlog.junit.xml"