mirror of
https://gitlab.gnome.org/World/Authenticator.git
synced 2025-03-04 00:34:40 +01:00
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
include:
|
|
- project: "gnome/citemplates"
|
|
file: "flatpak/flatpak_ci_initiative.yml"
|
|
|
|
stages:
|
|
- check
|
|
- test
|
|
- deploy
|
|
|
|
flatpak:
|
|
image: "registry.gitlab.gnome.org/gnome/gnome-runtime-images/rust_bundle:master"
|
|
stage: test
|
|
variables:
|
|
BUNDLE: "authenticator-nightly.flatpak"
|
|
MANIFEST_PATH: "build-aux/com.belmoussaoui.Authenticator.Devel.json"
|
|
FLATPAK_MODULE: "authenticator"
|
|
APP_ID: "com.belmoussaoui.Authenticator.Devel"
|
|
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
|
|
extends: ".flatpak"
|
|
|
|
rustfmt:
|
|
image: "rust:slim"
|
|
stage: check
|
|
script:
|
|
- rustup component add rustfmt
|
|
- echo -e "" >> src/config.rs
|
|
- echo -e "" >> src/static_resources.rs
|
|
- rustc -Vv && cargo -Vv
|
|
- cargo fmt --version
|
|
- cargo fmt --all -- --color=always --check
|
|
|
|
docs:
|
|
image: "$FLATPAK_IMAGE"
|
|
stage: deploy
|
|
tags:
|
|
- flatpak
|
|
script:
|
|
- flatpak-builder --user --disable-rofiles-fuse --stop-at=${FLATPAK_MODULE} --force-clean app ${MANIFEST_PATH}
|
|
- flatpak-builder --run app ${MANIFEST_PATH} cargo doc -p authenticator --no-deps --all-features
|
|
- rm -rf public
|
|
- mv _build/target/doc/ public
|
|
artifacts:
|
|
paths:
|
|
- public
|
|
only:
|
|
- master
|