fractal/.gitlab-ci.yml

72 lines
1.9 KiB
YAML
Raw Normal View History

include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
2017-11-12 11:32:08 +00:00
stages:
- 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
variables:
BUNDLE: "org.gnome.FractalDevel.flatpak"
2018-08-18 16:48:50 +00:00
MANIFEST_PATH: "flatpak/org.gnome.Fractal.json"
FLATPAK_MODULE: "fractal"
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/
- _build/target/
2018-08-18 16:48:50 +00:00
- target_docs/
- target_test/
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 "" >> fractal-gtk/src/config.rs
- echo -e "" >> fractal-gtk/src/static_resources.rs
- rustc -Vv && cargo -Vv
- cargo --version
- cargo fmt --all -- --check
flatpak:
extends: '.flatpak'
image: "registry.gitlab.gnome.org/gnome/gnome-runtime-images/rust_bundle:master"
variables:
RUNTIME_REPO: 'https://nightly.gnome.org/gnome-nightly.flatpakrepo'
APP_ID: "org.gnome.FractalDevel"
MESON_ARGS: '-Dprofile=development'
review:
dependencies:
- 'flatpak'
extends: '.review'
stop_review:
extends: '.stop_review'
nightly:
extends: '.publish_nightly'
2017-11-12 11:32:08 +00:00
2018-08-18 16:48:50 +00:00
pages:
image: "registry.gitlab.gnome.org/gnome/gnome-runtime-images/rust_bundle:master"
2018-05-14 18:58:42 +00:00
stage: deploy
2020-03-13 11:16:47 +00:00
tags:
- flatpak
2018-05-14 18:58:42 +00:00
script:
- flatpak-builder --user --disable-rofiles-fuse --stop-at=${FLATPAK_MODULE} --force-clean app ${MANIFEST_PATH}
- flatpak-builder --user --disable-rofiles-fuse --run app ${MANIFEST_PATH} meson _build
2018-08-18 16:48:50 +00:00
- flatpak-builder --user --disable-rofiles-fuse --run app ${MANIFEST_PATH} ninja -C _build doc
2018-05-18 19:04:12 +00:00
2018-05-14 18:58:42 +00:00
- rm -rf public
- mv _build/target/doc/ public
2018-05-14 18:58:42 +00:00
artifacts:
paths:
- public
2018-08-18 16:48:50 +00:00
only:
- master
<<: *flatpak_cache