fractal/.gitlab-ci.yml
BrainBlasted fd1145aea1 Fixed GitLab CI issue
Since 2394670bf7 all builds on the CI have
been failing. I believe this is the issue.
2018-04-16 18:47:52 +00:00

37 lines
1.4 KiB
YAML

stages:
- test
flatpak:
image: registry.gitlab.com/alatiera/gnome-nightly-oci/rust-bundle:latest
stage: test
script:
# Build the flatpak deps
- flatpak-builder --stop-at=fractal app flatpak/org.gnome.Fractal.json
# https://gitlab.gnome.org/alatiera/Hammond/issues/55
# Force regeneration of gresources regardless of artifacts chage
- flatpak-builder --run app flatpak/org.gnome.Fractal.json glib-compile-resources --sourcedir=fractal-gtk/res/ fractal-gtk/res/resources.xml
- 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
# 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
artifacts:
paths:
- fractal-dev.flatpak
expire_in: 2 days
cache:
# JOB_NAME - Each job will have it's own cache
# ^ Keep diffrerent caches for each branch
key: "$CI_JOB_NAME"
paths:
- .flatpak-builder/cache/
- target/