-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path.gitlab-ci.yml
58 lines (53 loc) · 1.46 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
image: fedora:latest
include:
- component: gitlab.gnome.org/GNOME/citemplates/release-service@master
inputs:
job-stage: release
dist-job-name: "build-release-tarball"
tarball-artifact-path: "${TARBALL_ARTIFACT_PATH}"
stages:
- test
- release
variables:
DEPENDENCIES: desktop-file-utils
gettext
gcc-c++
git
gtkmm4.0-devel
itstool
libadwaita-devel
libsecret-devel
libuuid-devel
libxml2-devel
libxslt-devel
meson
pcre-devel
yelp-tools
GIT_SUBMODULE_STRATEGY: normal
MESON_BUILD_DIR: _build
TARBALL_ARTIFACT_PATH: "${MESON_BUILD_DIR}/meson-dist/${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.tar.xz"
test:
stage: test
before_script:
- dnf update -y --nogpgcheck
- dnf install -y --nogpgcheck $DEPENDENCIES
script:
- meson setup "${MESON_BUILD_DIR}"
- meson test -C "${MESON_BUILD_DIR}"
- ninja -C "${MESON_BUILD_DIR}" install
build-release-tarball:
stage: release
needs: ["test"]
before_script:
- dnf update -y --nogpgcheck
- dnf install -y --nogpgcheck $DEPENDENCIES
script:
- meson setup "${MESON_BUILD_DIR}"
- meson dist -C "${MESON_BUILD_DIR}"
artifacts:
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
when: always
paths:
- "${TARBALL_ARTIFACT_PATH}"
rules:
- if: '$CI_COMMIT_TAG'