.gitlab-ci.yml 1.01 KB
Newer Older
Bilal Elmoussaoui's avatar
Bilal Elmoussaoui committed
1 2
include:
  - project: 'gnome/citemplates'
3
    file: 'flatpak/flatpak_ci_initiative.yml'
Bilal Elmoussaoui's avatar
Init  
Bilal Elmoussaoui committed
4 5

flatpak:
6
  image: 'registry.gitlab.gnome.org/gnome/gnome-runtime-images/rust_bundle:3.36'
Bilal Elmoussaoui's avatar
Bilal Elmoussaoui committed
7 8
  variables:
    BUNDLE: "contrast-nightly.flatpak"
Bilal Elmoussaoui's avatar
Bilal Elmoussaoui committed
9
    MANIFEST_PATH: "build-aux/org.gnome.design.Contrast.Devel.json"
Bilal Elmoussaoui's avatar
Bilal Elmoussaoui committed
10
    FLATPAK_MODULE: "contrast"
Bilal Elmoussaoui's avatar
Bilal Elmoussaoui committed
11
    APP_ID: "org.gnome.design.Contrast.Devel"
Bilal Elmoussaoui's avatar
Bilal Elmoussaoui committed
12 13
    RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
  extends: '.flatpak'
Bilal Elmoussaoui's avatar
Init  
Bilal Elmoussaoui committed
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

# Configure and run rustfmt
# Exits and builds fails if on bad format
rustfmt:
  image: "rust:slim"
  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
    - echo -e "" >> src/static_resources.rs
    - rustc -Vv && cargo -Vv
    - cargo fmt --version
    - cargo fmt --all -- --color=always --check

Bilal Elmoussaoui's avatar
Bilal Elmoussaoui committed
29 30 31 32
codespell:
  image: "docker.io/bilelmoussaoui/codespell"
  script:
    - codespell -S "*.png,*.po,.git"