2018-12-05 15:44:41 +00:00
|
|
|
include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
|
|
|
|
|
2018-03-18 13:40:35 +00:00
|
|
|
variables:
|
2018-05-04 08:42:41 +00:00
|
|
|
GIT_SUBMODULE_STRATEGY: normal
|
2018-05-06 17:25:32 +00:00
|
|
|
BUNDLE: "nautilus-dev.flatpak"
|
2018-03-18 13:40:35 +00:00
|
|
|
|
2018-03-16 14:51:02 +00:00
|
|
|
stages:
|
2020-03-26 09:26:58 +00:00
|
|
|
- image
|
2018-05-04 08:42:41 +00:00
|
|
|
- test
|
2018-05-06 17:25:32 +00:00
|
|
|
- deploy
|
2018-03-18 15:41:40 +00:00
|
|
|
|
2021-08-11 08:03:17 +00:00
|
|
|
flatpak:
|
2019-09-28 21:47:22 +00:00
|
|
|
extends: '.flatpak'
|
2020-02-06 20:28:17 +00:00
|
|
|
image: registry.gitlab.gnome.org/gnome/gnome-runtime-images/gnome:master
|
2018-10-09 10:57:19 +00:00
|
|
|
variables:
|
|
|
|
MANIFEST_PATH: "build-aux/flatpak/org.gnome.Nautilus.yml"
|
|
|
|
FLATPAK_MODULE: "nautilus"
|
2021-03-06 18:24:33 +00:00
|
|
|
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
|
2018-12-05 15:44:41 +00:00
|
|
|
APP_ID: "org.gnome.NautilusDevel"
|
2018-05-06 17:25:32 +00:00
|
|
|
|
2019-09-28 22:07:36 +00:00
|
|
|
nightly:
|
|
|
|
extends: '.publish_nightly'
|
|
|
|
dependencies:
|
2021-08-11 08:03:17 +00:00
|
|
|
- flatpak
|
2019-09-28 22:07:36 +00:00
|
|
|
|
2020-02-03 16:19:45 +00:00
|
|
|
style check:
|
2020-09-07 09:24:01 +00:00
|
|
|
image: registry.gitlab.gnome.org/gnome/nautilus:latest
|
2020-02-03 16:19:45 +00:00
|
|
|
stage: test
|
2020-03-26 09:38:09 +00:00
|
|
|
artifacts:
|
|
|
|
name: 'Style check artifacts'
|
|
|
|
expose_as: 'Get style check diff here'
|
|
|
|
when: on_failure
|
|
|
|
paths:
|
|
|
|
- 'uncrustify.diff'
|
|
|
|
expire_in: 14 days
|
2020-02-03 16:19:45 +00:00
|
|
|
script:
|
|
|
|
- LANG=C.utf8 data/run-uncrustify.sh
|
2020-03-26 09:38:09 +00:00
|
|
|
- git diff --exit-code | tee uncrustify.diff
|
2021-08-11 07:53:33 +00:00
|
|
|
except:
|
|
|
|
- /^gnome-.*$/
|
2020-03-26 09:26:58 +00:00
|
|
|
|
|
|
|
update image:
|
|
|
|
variables:
|
2020-11-19 09:21:15 +00:00
|
|
|
STORAGE_DRIVER: vfs
|
|
|
|
BUILDAH_FORMAT: docker
|
|
|
|
BUILDAH_ISOLATION: chroot
|
2021-10-08 10:55:56 +00:00
|
|
|
image: registry.fedoraproject.org/fedora:latest
|
2020-03-26 09:26:58 +00:00
|
|
|
stage: image
|
|
|
|
script:
|
2020-11-19 09:21:15 +00:00
|
|
|
- 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
|
2021-10-08 10:55:56 +00:00
|
|
|
- buildah push --creds $CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD $CI_REGISTRY_IMAGE
|
|
|
|
- buildah push --creds $CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD "$CI_REGISTRY_IMAGE:v$CI_JOB_ID"
|
2020-03-26 09:26:58 +00:00
|
|
|
when: manual
|
|
|
|
only:
|
2020-04-15 13:56:59 +00:00
|
|
|
- web
|
|
|
|
- master
|
|
|
|
except:
|
2020-03-26 09:26:58 +00:00
|
|
|
variables:
|
2020-04-15 13:56:59 +00:00
|
|
|
- $CI_PROJECT_NAMESPACE != "GNOME"
|