mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-05 16:04:31 +00:00
7834de2671
It was set to flathub because we used to depend on a stable runtime. [1] We have since changed to depend on the unstable runtime[2], but the Nightly flatpakref still configures the wrong repo on installation. If the user didn't have the gnome-nightly repository configured in advance, then the runtime cannot be found, failing the installation.[3] Update the repo URL, which I should have done in [2]. [1]c4afd14696
[2]d95a616116
[3] https://blogs.gnome.org/antoniof/2021/03/05/files-40-beta-more-productivity-and-some-eye-candy/#comment-541
92 lines
2.6 KiB
YAML
92 lines
2.6 KiB
YAML
include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
|
|
|
|
variables:
|
|
GIT_SUBMODULE_STRATEGY: normal
|
|
BUNDLE: "nautilus-dev.flatpak"
|
|
|
|
stages:
|
|
- image
|
|
- test
|
|
- cross environment
|
|
- deploy
|
|
|
|
flatpak devel:
|
|
extends: '.flatpak'
|
|
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
|
|
variables:
|
|
MANIFEST_PATH: "build-aux/flatpak/org.gnome.Nautilus.yml"
|
|
FLATPAK_MODULE: "nautilus"
|
|
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
|
|
APP_ID: "org.gnome.NautilusDevel"
|
|
|
|
nightly:
|
|
extends: '.publish_nightly'
|
|
dependencies:
|
|
- 'flatpak devel'
|
|
|
|
fedora rawhide:
|
|
image:
|
|
name: registry.gitlab.gnome.org/gnome/nautilus:latest
|
|
entrypoint: ["/bin/sh", "-c"]
|
|
stage: cross environment
|
|
script:
|
|
- meson _build .
|
|
- cd _build
|
|
- ninja test
|
|
only:
|
|
- web
|
|
- master
|
|
allow_failure: true
|
|
|
|
flatpak master:
|
|
stage: cross environment
|
|
dependencies: []
|
|
variables:
|
|
MANIFEST_PATH: "build-aux/flatpak/org.gnome.NautilusMaster.yml"
|
|
FLATPAK_MODULE: "nautilus"
|
|
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
|
|
APP_ID: "org.gnome.NautilusDevel"
|
|
extends: .flatpak
|
|
only:
|
|
- schedules
|
|
- web
|
|
- tags
|
|
allow_failure: true
|
|
|
|
style check:
|
|
image: registry.gitlab.gnome.org/gnome/nautilus:latest
|
|
stage: test
|
|
artifacts:
|
|
name: 'Style check artifacts'
|
|
expose_as: 'Get style check diff here'
|
|
when: on_failure
|
|
paths:
|
|
- 'uncrustify.diff'
|
|
expire_in: 14 days
|
|
script:
|
|
- gcc data/lineup-parameters.c `pkg-config --cflags --libs gio-2.0 gio-unix-2.0` -o data/lineup-parameters
|
|
- LANG=C.utf8 data/run-uncrustify.sh
|
|
- git diff --exit-code | tee uncrustify.diff
|
|
|
|
update image:
|
|
variables:
|
|
STORAGE_DRIVER: vfs
|
|
BUILDAH_FORMAT: docker
|
|
BUILDAH_ISOLATION: chroot
|
|
image: registry.fedoraproject.org/fedora:33
|
|
stage: image
|
|
script:
|
|
- dnf install -y buildah runc
|
|
- sed -i '/^mountopt =.*/d' /etc/containers/storage.conf
|
|
- buildah bud --tag $CI_REGISTRY_IMAGE -f .gitlab/Dockerfile
|
|
- buildah tag $CI_REGISTRY_IMAGE "$CI_REGISTRY_IMAGE:v$CI_JOB_ID"
|
|
- buildah login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
|
- buildah push $CI_REGISTRY_IMAGE
|
|
- buildah push "$CI_REGISTRY_IMAGE:v$CI_JOB_ID"
|
|
when: manual
|
|
only:
|
|
- web
|
|
- master
|
|
except:
|
|
variables:
|
|
- $CI_PROJECT_NAMESPACE != "GNOME"
|