summaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.gitlab-ci.yml77
1 files changed, 77 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..64e07df
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,77 @@
+include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
+
+variables:
+ GIT_SUBMODULE_STRATEGY: normal
+
+stages:
+ - image
+ - test
+ - deploy
+
+.vars-devel:
+ 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"
+ BUNDLE: "nautilus-dev.flatpak"
+
+flatpak@x86_64:
+ extends: ['.flatpak@x86_64', '.vars-devel']
+
+flatpak@aarch64:
+ #don't build for every, MRs to save resources
+ only:
+ refs:
+ - 'master'
+ - 'main'
+ - $CI_DEFAULT_BRANCH
+
+ extends: ['.flatpak@aarch64', '.vars-devel']
+
+nightly@x86_64:
+ extends: '.publish_nightly'
+ needs: ['flatpak@x86_64']
+
+nightly@aarch64:
+ extends: '.publish_nightly'
+ needs: ['flatpak@aarch64']
+
+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:
+ - LANG=C.utf8 data/run-uncrustify.sh
+ - git diff --exit-code | tee uncrustify.diff
+ except:
+ - /^gnome-.*$/
+
+update image:
+ variables:
+ STORAGE_DRIVER: vfs
+ BUILDAH_FORMAT: docker
+ BUILDAH_ISOLATION: chroot
+ image: registry.fedoraproject.org/fedora:latest
+ 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 --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"
+ when: manual
+ only:
+ - web
+ - master
+ except:
+ variables:
+ - $CI_PROJECT_NAMESPACE != "GNOME"