-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
35 lines (31 loc) · 1.47 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: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
variables:
BUNDLE: "mirdorph.flatpak"
flatpak:
image: 'registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master'
before_script:
- "flatpak install --user -y --noninteractive flathub-beta org.freedesktop.Sdk.Extension.rust-stable//21.08beta"
variables:
MANIFEST_PATH: "org.gnome.gitlab.ranchester.Mirdorph.json"
FLATPAK_MODULE: "mirdorph"
RUNTIME_REPO: "https://flathub.org/repo/flathub.flatpakrepo"
APP_ID: "org.gnome.gitlab.ranchester.Mirdorph"
extends: .flatpak
flatpak-test:
image: 'registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master'
before_script:
- "flatpak install --user -y --noninteractive flathub-beta org.freedesktop.Sdk.Extension.rust-stable//21.08beta"
script:
- !reference [.flatpak, script]
- 'flatpak install -y --noninteractive --user --no-pull --no-related mirdorph.flatpak'
- 'flatpak run --command="python3" --cwd=$(pwd)/tests --filesystem=$(pwd) org.gnome.gitlab.ranchester.Mirdorph -m pytest -v --junitxml=../report.xml'
variables:
MANIFEST_PATH: "org.gnome.gitlab.ranchester.Mirdorph.json"
FLATPAK_MODULE: "mirdorph"
RUNTIME_REPO: "https://flathub.org/repo/flathub.flatpakrepo"
APP_ID: "org.gnome.gitlab.ranchester.Mirdorph"
extends: .flatpak
artifacts:
when: always
reports:
junit: report.xml