-
Notifications
You must be signed in to change notification settings - Fork 7
/
.gitlab-ci.yml
57 lines (48 loc) · 1.91 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
stages:
- lint
- build-and-test
- flatpak
.build-common:
stage: build-and-test
script:
- meson setup _build
- meson compile -C _build
- meson test "eartag*:" -v -C _build
- meson install -C _build
#build-fedora:
# image: fedora:latest
# extends: .build-common
# before_script:
# - dnf install -y 'dnf-command(builddep)' meson git gtk4-devel libadwaita-devel gsettings-desktop-schemas-devel python3 python3-mutagen python3-pillow python3-gobject desktop-file-utils libappstream-glib libappstream-glib-builder python3-pytest python3-pip python3-acoustid ffmpeg-free
# - python3 -m pip install python-magic # fedora version does not work correctly?
build-alpine:
image: alpine:edge
extends: .build-common
before_script:
- apk add build-base git gtk4.0-dev libadwaita-dev meson python3 py3-gobject3 py3-magic py3-mutagen py3-pillow desktop-file-utils appstream-glib gettext py3-pytest py3-flake8 py3-pyacoustid ffmpeg
lint-alpine:
image: alpine:edge
stage: lint
before_script:
- apk add build-base gtk4.0-dev libadwaita-dev meson python3 py3-gobject3 py3-magic py3-mutagen py3-pillow desktop-file-utils appstream-glib gettext py3-pytest py3-flake8 black
script:
- flake8 . --count --select=E9,F63,F7,F82,F821 --show-source --statistics
- black --check .
- flake8 . --count --exit-zero --statistics
allow_failure: true
# Flatpak build CI
include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
.vars-devel:
stage: flatpak
variables:
MANIFEST_PATH: "app.drey.EarTag.Devel.json"
FLATPAK_MODULE: "eartag"
APP_ID: "app.drey.EarTag.Devel"
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
BUNDLE: "app.drey.EarTag.Devel.flatpak"
# Build Flatpak for x86_64
flatpak@x86_64:
extends: ['.flatpak@x86_64', '.vars-devel']
# Build Flatpak for aarch64
flatpak@aarch64:
extends: ['.flatpak@aarch64', '.vars-devel']