-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
54 lines (45 loc) · 1.51 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
include:
- project: "GNOME/citemplates"
file: "flatpak/flatpak_ci_initiative.yml"
variables:
BUNDLE: "de.haeckerfelix.Souk.Devel.flatpak"
MANIFEST_PATH: "build-aux/flatpak/de.haeckerfelix.Souk.Devel.json"
FLATPAK_MODULE: "souk"
APP_ID: "de.haeckerfelix.Souk.Devel"
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
RUNTIME_IMAGE: "quay.io/gnome_infrastructure/gnome-runtime-images:gnome-master"
# x86_64 Flatpak bundle
flatpak@x86_64:
extends: ".flatpak@x86_64"
# aarch64 Flatpak bundle
flatpak@aarch64:
extends: ".flatpak@aarch64"
.flatpak-command: &flatpak-command
image: '${RUNTIME_IMAGE}'
tags:
- flatpak
script:
- flatpak-builder --user --disable-rofiles-fuse --keep-build-dirs --stop-at=${FLATPAK_MODULE} flatpak_app ${MANIFEST_PATH}
- flatpak build-finish --share=network flatpak_app
- echo "cd .. && ${COMMAND}" | flatpak-builder --user --disable-rofiles-fuse --build-shell=${FLATPAK_MODULE} flatpak_app ${MANIFEST_PATH}
cargo-fmt:
<<: *flatpak-command
variables:
COMMAND: "./build-aux/checks.sh cargo_fmt"
cargo-typos:
<<: *flatpak-command
variables:
COMMAND: "cargo install typos-cli && ./build-aux/checks.sh cargo_typos"
cargo-deny:
<<: *flatpak-command
variables:
COMMAND: "cargo install cargo-deny && ./build-aux/checks.sh cargo_deny"
cargo-clippy:
<<: *flatpak-command
variables:
COMMAND: "./build-aux/checks.sh cargo_clippy"
potfiles:
image: alpine
script:
- apk add --no-cache git
- ./build-aux/checks.sh potfiles