forked from endlessm/gnome-tour
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
30 lines (27 loc) · 891 Bytes
/
.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
include:
- project: "gnome/citemplates"
file: "flatpak/flatpak-ci-initiative-sdk-extensions.yml"
flatpak:
variables:
BUNDLE: "org.gnome.TourDevel.flatpak"
MANIFEST_PATH: "build-aux/org.gnome.TourDevel.json"
FLATPAK_MODULE: "gnome-tour"
APP_ID: "org.gnome.TourDevel"
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
extends: ".flatpak"
nightly:
extends: ".publish_nightly"
dependencies: ["flatpak"]
needs: ["flatpak"]
# Configure and run rustfmt
# Exits and builds fails if on bad format
rustfmt:
image: "rust:slim"
script:
- rustup component add rustfmt
# 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 fmt --version
- cargo fmt --all -- --color=always --check