-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
42 lines (36 loc) · 1.15 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
include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
stages:
- check
- test
- deploy
variables:
BUNDLE: "org.gnome.Solanum.Devel.flatpak"
MANIFEST_PATH: "org.gnome.Solanum.Devel.json"
FLATPAK_MODULE: "solanum"
FLATPAK_IMAGE: "quay.io/gnome_infrastructure/gnome-runtime-images:gnome-master"
.flatpak_cache_template: &flatpak_cache
cache:
key: "flatpak"
paths:
- .flatpak-builder/cache/
- _build/target/
check:
image: "registry.gitlab.com/alatiera/rustfmt-oci-image/rustfmt:stable"
stage: "check"
script:
# Create blank versions of our configured files
# so rustfmt does not yell about non-existent files or completely empty files
- echo -e "" >> src/config.rs
- rustc -Vv && cargo -Vv
- cargo --version
- cargo fmt --all -- --check
flatpak:
extends: '.flatpak'
image: "$FLATPAK_IMAGE"
variables:
RUNTIME_REPO: 'https://nightly.gnome.org/gnome-nightly.flatpakrepo'
APP_ID: "org.gnome.Solanum.Devel"
nightly:
extends: '.publish_nightly'
dependencies: ['flatpak']
needs: ['flatpak']