2020-12-05 21:24:34 +01:00
|
|
|
stages:
|
|
|
|
- check
|
|
|
|
- test
|
|
|
|
|
2019-09-03 00:07:06 +00:00
|
|
|
flatpak:
|
2020-10-28 02:05:11 +01:00
|
|
|
image: "registry.gitlab.gnome.org/gnome/gnome-runtime-images/rust_bundle:master"
|
2020-12-05 21:24:34 +01:00
|
|
|
stage: test
|
2020-12-05 22:21:43 +01:00
|
|
|
tags:
|
|
|
|
- flatpak
|
2020-12-06 00:38:19 +01:00
|
|
|
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"
|
2020-12-05 22:17:17 +01:00
|
|
|
script:
|
|
|
|
- >
|
|
|
|
xvfb-run -a -s "-screen 0 1024x768x24"
|
|
|
|
flatpak-builder --keep-build-dirs --user --disable-rofiles-fuse flatpak_app --repo=repo ${BRANCH:+--default-branch=$BRANCH} ${MANIFEST_PATH}
|
|
|
|
- flatpak build-bundle repo ${BUNDLE} --runtime-repo=${RUNTIME_REPO} ${APP_ID} ${BRANCH}
|
|
|
|
artifacts:
|
|
|
|
name: 'Flatpak artifacts'
|
|
|
|
expose_as: 'Get Flatpak bundle here'
|
|
|
|
when: 'always'
|
|
|
|
paths:
|
|
|
|
- "${BUNDLE}"
|
|
|
|
- '.flatpak-builder/build/${FLATPAK_MODULE}/_flatpak_build/meson-logs/meson-log.txt'
|
|
|
|
- '.flatpak-builder/build/${FLATPAK_MODULE}/_flatpak_build/meson-logs/testlog.txt'
|
|
|
|
expire_in: 14 days
|
2019-09-03 00:07:06 +00:00
|
|
|
|
|
|
|
rustfmt:
|
|
|
|
image: "rust:slim"
|
2020-12-05 21:24:34 +01:00
|
|
|
stage: check
|
2019-09-03 00:07:06 +00:00
|
|
|
script:
|
|
|
|
- rustup component add rustfmt
|
|
|
|
- echo -e "" >> src/config.rs
|
2019-09-03 14:45:04 +02:00
|
|
|
- echo -e "" >> src/static_resources.rs
|
2019-09-03 00:07:06 +00:00
|
|
|
- rustc -Vv && cargo -Vv
|
|
|
|
- cargo fmt --version
|
|
|
|
- cargo fmt --all -- --color=always --check
|
2020-12-05 21:24:34 +01:00
|
|
|
|