.gitlab-ci.yml 1.08 KB
Newer Older
1
include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak-ci-initiative-sdk-extensions.yml'
2 3 4
stages:
  - lint
  - test
5
  - deploy
6 7

variables:
Bilal Elmoussaoui's avatar
Bilal Elmoussaoui committed
8
    BUNDLE: "icon-library-nightly.flatpak"
9 10

flatpak:
Bilal Elmoussaoui's avatar
Bilal Elmoussaoui committed
11
    image: "registry.gitlab.gnome.org/gnome/gnome-runtime-images/rust_bundle:master"  
12
    extends: '.flatpak'    
13
    variables:
14
        MANIFEST_PATH: "build-aux/org.gnome.design.IconLibraryDevel.json"
Bilal Elmoussaoui's avatar
Bilal Elmoussaoui committed
15
        FLATPAK_MODULE: "icon-library"
16
        MESON_ARGS: "-Dprofile=development"
17
        APP_ID: "org.gnome.design.IconLibraryDevel"
18 19 20

review:
    dependencies:
21 22 23 24 25
        - flatpak  
    extends: '.review'

stop_review:  
    extends: '.stop_review'
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41


# Configure and run rustfmt
# Exits and builds fails if on bad format
rustfmt:
  image: "rust:slim"
  stage: "lint"
  script:
    - rustup component add rustfmt
    # Create blank versions of our configured files
    # so rustfmt does not yell about non-existent files or completely empty files
    - echo -e "" >> src/config.rs
    - rustc -Vv && cargo -Vv
    - cargo fmt --version
    - cargo fmt --all -- --color=always --check