2017-11-12 11:32:08 +00:00
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
|
2018-03-19 10:49:11 +00:00
|
|
|
flatpak:
|
|
|
|
image: registry.gitlab.com/alatiera/gnome-nightly-oci/rust-bundle:latest
|
|
|
|
stage: test
|
|
|
|
before_script:
|
|
|
|
# same thing as https://gitlab.gnome.org/alatiera/Hammond/issues/55
|
|
|
|
- dnf install -y glib2-devel
|
|
|
|
# Force regeneration of gresources regardless of artifacts chage
|
|
|
|
- cd fractal-gtk/res/ && glib-compile-resources --generate resources.xml && cd ../../
|
|
|
|
script:
|
|
|
|
# Build the flatpak repo
|
|
|
|
- flatpak-builder --stop-at=fractal app flatpak/org.gnome.Fractal.json
|
|
|
|
- flatpak-builder --run app flatpak/org.gnome.Fractal.json meson --prefix=/app --libdir=/app/lib _build
|
|
|
|
- flatpak-builder --run app flatpak/org.gnome.Fractal.json ninja -C _build install
|
|
|
|
- flatpak-builder --finish-only app flatpak/org.gnome.Fractal.json
|
|
|
|
- flatpak build-export repo app
|
2017-12-22 20:22:32 +00:00
|
|
|
|
2018-03-19 10:49:11 +00:00
|
|
|
# Create a flatpak bundle for designers to use
|
|
|
|
- flatpak build-bundle repo fractal-dev.flatpak org.gnome.Fractal
|
|
|
|
# Run the tests
|
|
|
|
- flatpak-builder --run app flatpak/org.gnome.Fractal.json cargo test
|
2017-11-12 11:32:08 +00:00
|
|
|
|
2018-03-19 10:49:11 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- fractal-dev.flatpak
|
|
|
|
expire_in: 2 days
|
2017-11-12 11:32:08 +00:00
|
|
|
|
2018-03-19 10:49:11 +00:00
|
|
|
cache:
|
|
|
|
# JOB_NAME - Each job will have it's own cache
|
|
|
|
# COMMIT_REF_SLUG = Lowercase name of the branch
|
|
|
|
# ^ Keep diffrerent caches for each branch
|
|
|
|
key: "$CI_JOB_NAME"
|
|
|
|
paths:
|
|
|
|
- .flatpak-builder/cache/
|
|
|
|
- target/
|
2017-11-12 11:32:08 +00:00
|
|
|
|