summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
blob: 81e01758dd2ff2df0152eb51f272ed87f9538991 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
fedora:
    image:
        name: registry.gitlab.gnome.org/gnome/gvfs:latest
        entrypoint: ["/bin/sh", "-c"]
    tags:
        - x86_64
        - ipv6
    script:
        - meson
          -Dinstalled_tests=true
          -Ddevel_utils=true
          -Dman=true
          -Dafc=true
          -Darchive=true
          -Dsftp=true
          -Dsmb=true
          -Dudisks2=true
          -Dhttp=true
          -Dgphoto2=true
          --prefix /usr --werror build
        - sudo ninja -C build install
        - GIO_USE_VOLUME_MONITOR=unix gnome-desktop-testing-runner gvfs
    allow_failure: true

update-image:
    variables:
         STORAGE_DRIVER: vfs
         BUILDAH_FORMAT: docker
         BUILDAH_ISOLATION: chroot
    image: registry.fedoraproject.org/fedora:latest
    script:
        - dnf install -y buildah runc
        - sed -i '/^mountopt =.*/d' /etc/containers/storage.conf
        - buildah bud --tag $CI_REGISTRY_IMAGE -f .gitlab-ci/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:
        variables:
            - $CI_PROJECT_NAMESPACE == "GNOME"