Loupe/.gitlab-ci.yml
Christopher Davis f692ab5626 Initial Commit
The initial commit of gnome-image-viewer.
Things are in an MVP state, with image viewing and
opening from the desktop functional. We also can
open images externally, print them, and set them as
backgrounds.
2020-12-26 02:18:23 -08:00

42 lines
1.2 KiB
YAML

include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
stages:
- check
- test
- deploy
variables:
BUNDLE: "org.gnome.ImageViewer.Devel.flatpak"
MANIFEST_PATH: "build-aux/flatpak/org.gnome.ImageViewer.Devel.json"
FLATPAK_MODULE: "gnome-image-viewer"
FLATPAK_IMAGE: "registry.gitlab.gnome.org/gnome/gnome-runtime-images/rust_bundle: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.ImageViewer.Devel"
# nightly:
# extends: '.publish_nightly'
# dependencies: ['flatpak']
# needs: ['flatpak']