-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.gitlab-ci.yml
66 lines (56 loc) · 1.42 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
58
59
60
61
62
63
64
65
66
image: fedora:latest
include:
- project: "GNOME/citemplates"
file: "templates/default-rules.yml"
- project: 'gnome/citemplates'
file: 'flatpak/flatpak_ci_initiative.yml'
- project: 'GNOME/citemplates'
file: 'templates/basic-release.yml'
stages:
- check
- build
- deploy
variables:
BUNDLE: "org.gnome.World.Secrets.Devel.flatpak"
MANIFEST_PATH: "flatpak/org.gnome.World.Secrets.Devel.json"
FLATPAK_MODULE: "secrets"
APP_ID: "org.gnome.World.Secrets.Devel"
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
.flatpak_cache_template: &flatpak_cache
cache:
key: "flatpak"
paths:
- .flatpak-builder/cache/
- _build/target/
flatpak_x86_64:
extends: .flatpak@x86_64
stage: build
flatpak_aarch64:
extends: .flatpak@aarch64
stage: build
allow_failure: true
publish-nightly@x86_64:
extends: '.publish_nightly'
needs: ['flatpak_x86_64']
publish-nightly@aarch64:
extends: '.publish_nightly'
needs: ['flatpak_aarch64']
allow_failure: true
codespell:
stage: check
script:
- dnf install -y codespell
- codespell -L crate -S "*.png,*.po,.git,*.jpg,eff_large_wordlist.txt,.mypy_cache,_build" -f
mypy:
stage: check
script:
- dnf install -y pip
- pip install mypy pyotp
- mypy gsecrets
ruff:
stage: check
script:
- dnf install -y pip
- pip install ruff
- ruff format --check
- ruff check