2020-04-19 10:29:54 +00:00
|
|
|
include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
|
2019-09-23 10:14:29 +00:00
|
|
|
|
2017-11-12 11:32:08 +00:00
|
|
|
stages:
|
2018-11-27 19:57:35 +00:00
|
|
|
- check
|
2017-11-12 11:32:08 +00:00
|
|
|
- test
|
2018-05-14 19:12:07 +00:00
|
|
|
- deploy
|
2017-11-12 11:32:08 +00:00
|
|
|
|
2018-08-18 15:47:15 +00:00
|
|
|
variables:
|
2018-08-24 12:43:11 +00:00
|
|
|
BUNDLE: "org.gnome.FractalDevel.flatpak"
|
2018-08-18 16:48:50 +00:00
|
|
|
MANIFEST_PATH: "flatpak/org.gnome.Fractal.json"
|
|
|
|
FLATPAK_MODULE: "fractal"
|
2020-10-10 19:46:33 +00:00
|
|
|
FLATPAK_IMAGE: "registry.gitlab.gnome.org/gnome/gnome-runtime-images/rust_bundle:master"
|
2018-08-18 16:48:50 +00:00
|
|
|
|
2018-08-18 17:20:07 +00:00
|
|
|
.flatpak_cache_template: &flatpak_cache
|
2018-08-18 16:48:50 +00:00
|
|
|
cache:
|
|
|
|
key: "flatpak"
|
|
|
|
paths:
|
|
|
|
- .flatpak-builder/cache/
|
2019-04-22 05:54:26 +00:00
|
|
|
- _build/target/
|
2018-08-18 16:48:50 +00:00
|
|
|
- target_docs/
|
|
|
|
- target_test/
|
|
|
|
|
2018-11-27 19:57:35 +00:00
|
|
|
check:
|
2020-05-16 20:03:18 +00:00
|
|
|
image: "registry.gitlab.com/alatiera/rustfmt-oci-image/rustfmt:stable"
|
2018-11-27 19:57:35 +00:00
|
|
|
stage: "check"
|
|
|
|
script:
|
2019-04-22 05:58:57 +00:00
|
|
|
# Create blank versions of our configured files
|
|
|
|
# so rustfmt does not yell about non-existent files or completely empty files
|
|
|
|
- echo -e "" >> fractal-gtk/src/config.rs
|
|
|
|
- echo -e "" >> fractal-gtk/src/static_resources.rs
|
2018-11-27 19:57:35 +00:00
|
|
|
- rustc -Vv && cargo -Vv
|
2019-02-02 19:32:22 +00:00
|
|
|
- cargo --version
|
|
|
|
- cargo fmt --all -- --check
|
2018-08-18 15:47:15 +00:00
|
|
|
|
2018-03-19 10:49:11 +00:00
|
|
|
flatpak:
|
2019-09-23 10:14:29 +00:00
|
|
|
extends: '.flatpak'
|
2020-05-16 20:03:18 +00:00
|
|
|
image: "$FLATPAK_IMAGE"
|
2019-09-23 10:14:29 +00:00
|
|
|
variables:
|
|
|
|
RUNTIME_REPO: 'https://nightly.gnome.org/gnome-nightly.flatpakrepo'
|
|
|
|
APP_ID: "org.gnome.FractalDevel"
|
2018-08-18 15:47:15 +00:00
|
|
|
|
2019-09-23 10:14:29 +00:00
|
|
|
nightly:
|
|
|
|
extends: '.publish_nightly'
|
2020-08-03 21:41:23 +00:00
|
|
|
dependencies: ['flatpak']
|
|
|
|
needs: ['flatpak']
|