-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy path.gitlab-ci.yml
43 lines (37 loc) · 1.25 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
include:
- "https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml"
- component: gitlab.gnome.org/GNOME/citemplates/release-service@master
inputs:
dist-job-name: "build-and-test"
tarball-artifact-path: "${TARBALL_ARTIFACT_DIR}/${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.tar.xz"
variables:
MESON_BUILD_DIR: _build
TARBALL_ARTIFACT_DIR: "${MESON_BUILD_DIR}/meson-dist"
build-and-test:
image: nixpkgs/nix:latest
script:
- nix-shell --run "meson setup '${MESON_BUILD_DIR}'"
- nix-shell --run "meson compile -C '${MESON_BUILD_DIR}'"
- nix-shell --run "meson test -C '${MESON_BUILD_DIR}'"
- nix-shell --run "meson dist -C '${MESON_BUILD_DIR}' --include-subprojects"
artifacts:
name: "Tarball"
paths:
- "${TARBALL_ARTIFACT_DIR}/"
build-nix-derivation:
image: nixpkgs/nix:latest
script:
- nix-build
flatpak:
extends: ".flatpak"
allow_failure: true
variables:
MANIFEST_PATH: "flatpak/org.gnome.FileRoller.json"
FLATPAK_MODULE: "file-roller"
APP_ID: "org.gnome.FileRoller"
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
BUNDLE: "file-roller-dev.flatpak"
nightly:
extends: ".publish_nightly"
dependencies: ["flatpak"]
needs: ["flatpak"]