.gitlab-ci.yml 1.35 KB
Newer Older
1 2 3
stages:
  - test

4 5 6 7
flatpak:
    image: registry.gitlab.com/alatiera/gnome-nightly-oci/rust-bundle:latest
    stage: test
    script:
8
        # Build the flatpak deps
9
        - flatpak-builder --stop-at=fractal app flatpak/org.gnome.Fractal.json
10 11 12 13 14

        # https://gitlab.gnome.org/alatiera/Hammond/issues/55
        # Force regeneration of gresources regardless of artifacts chage
        - flatpak-builder --run app org.gnome.Fractal.json glib-compile-resources --sourcedir=fractal-gtk/res/ fractal-gtk/res/resources.xml

15 16 17 18
        - 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
19

20 21 22 23
        # 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
24

25 26 27 28
    artifacts:
        paths:
            - fractal-dev.flatpak
        expire_in: 2 days
29

30 31 32 33 34 35 36
    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/
37