The current version of blueprint-compiler used to compile is different from the version used to run the format check. This means that running the formatter locally does not get the format check passing. This commit changes the format check from getting the blueprint-compiler from the latest Fedora image to getting it from the GNOME OS OCI nightly image, ensuring that it is always up-to-date. Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/736>
83 lines
2.2 KiB
YAML
83 lines
2.2 KiB
YAML
include:
|
|
- project: "GNOME/citemplates"
|
|
file: "templates/default-rules.yml"
|
|
- project: 'gnome/citemplates'
|
|
file: 'flatpak/flatpak_ci_initiative.yml'
|
|
- component: gitlab.gnome.org/GNOME/citemplates/release-service@master
|
|
inputs:
|
|
dist-job-name: "build-flatpak"
|
|
- component: "gitlab.gnome.org/gnome/citemplates/gnomeos-basic-ci@master"
|
|
inputs:
|
|
meson-options: "-Dtracing=true -Dprofile=development"
|
|
grcov-c-options: '--ignore "tests/*"'
|
|
|
|
variables:
|
|
APP_ID: "org.gnome.Calendar.Devel"
|
|
BUNDLE: "org.gnome.Calendar.Devel.flatpak"
|
|
FLATPAK_MODULE: "gnome-calendar"
|
|
GIT_SUBMODULE_STRATEGY: 'normal'
|
|
MANIFEST_PATH: "build-aux/org.gnome.Calendar.json"
|
|
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
|
|
|
|
stages:
|
|
- check
|
|
- build
|
|
- analysis
|
|
- deploy
|
|
|
|
style-check-diff:
|
|
image: fedora:latest
|
|
stage: check
|
|
before_script:
|
|
- dnf install -y clang-tools-extra git python
|
|
script:
|
|
- .gitlab-ci/run-style-check-diff.sh
|
|
allow_failure: true
|
|
|
|
blueprint-format:
|
|
image: quay.io/gnome_infrastructure/gnome-build-meta:core-nightly
|
|
stage: check
|
|
before_script:
|
|
- shopt -s globstar
|
|
script:
|
|
- blueprint-compiler format **/*.blp
|
|
|
|
build-flatpak:
|
|
extends: '.flatpak@x86_64'
|
|
stage: build
|
|
before_script: []
|
|
|
|
build-flatpak-aarch64:
|
|
extends: '.flatpak@aarch64'
|
|
stage: build
|
|
before_script: []
|
|
when: manual
|
|
|
|
nightly:
|
|
extends: '.publish_nightly'
|
|
needs: ['build-flatpak']
|
|
|
|
nightly-aarch64:
|
|
extends: '.publish_nightly'
|
|
needs: ['build-flatpak-aarch64']
|
|
when: manual
|
|
|
|
pages:
|
|
stage: deploy
|
|
needs: [ "build-gnomeos-grcov-c", "build-gnomeos-scan-build" ]
|
|
script:
|
|
- mkdir -p public
|
|
- cp .gitlab-ci/landing-page.html public/index.html
|
|
- mv public_scanbuild/ public/scanbuild
|
|
- mv public_grcov/cobertura.xml public/
|
|
- mv public_grcov/html public/coverage
|
|
artifacts:
|
|
paths:
|
|
- public
|
|
expire_in: 1 day
|
|
rules:
|
|
# Restrict to the main branch so not every branch tries to deploy the web site
|
|
- if: ($CI_DEFAULT_BRANCH == $CI_COMMIT_BRANCH)
|
|
# Alternatively, restrict it to the GNOME namespace to avoid every fork pushing a set of pages by default
|
|
# - if: ($CI_DEFAULT_BRANCH == $CI_COMMIT_BRANCH && $CI_PROJECT_NAMESPACE == "GNOME")
|