image: fedora:latest

stages:
  - build

build-folks:
  stage: build
  except:
    - tags
  before_script:
    - dnf update -y --nogpgcheck
    - dnf -y install --nogpgcheck
      dbus-glib-devel evolution-data-server-devel glib2-devel
      gobject-introspection-devel libgee-devel libxml2-devel meson ninja-build
      python2 readline-devel redhat-rpm-config telepathy-glib-devel
      telepathy-glib-vala tracker-devel vala
  script:
    - meson _build
    - ninja -C _build
    - bash +x ./.gitlab-ci/run-tests.sh
  allow_failure: true # FIXME: Remove when https://gitlab.gnome.org/GNOME/folks/issues/3 is fixed
  artifacts:
    reports:
      junit: "_build/${CI_JOB_NAME}-report.xml"
    name: "folks-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
    when: always
    paths:
      - "_build/config.h"
      - "_build/meson-logs"
      - "_build/${CI_JOB_NAME}-report.xml"

image: fedora:rawhide

stages:
  - build

build-folks:
  stage: build
  except:
    - tags
  before_script:
    - dnf update -y --nogpgcheck
    - dnf -y install --nogpgcheck
      dbus-glib-devel evolution-data-server-devel glib2-devel
      gobject-introspection-devel libgee-devel libxml2-devel meson ninja-build
      python2 readline-devel redhat-rpm-config telepathy-glib-devel
      telepathy-glib-vala tracker-devel vala
  script:
    - meson _build
    - ninja -C _build
    - bash +x ./.gitlab-ci/run-tests.sh
  allow_failure: true # FIXME: Remove when https://gitlab.gnome.org/GNOME/folks/issues/3 is fixed
  artifacts:
    reports:
      junit: "_build/${CI_JOB_NAME}-report.xml"
    name: "folks-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
    when: always
    paths:
      - "_build/config.h"
      - "_build/meson-logs"
      - "_build/${CI_JOB_NAME}-report.xml"

Use Fedora rawhide as base image
ci: Use Fedora rawhide as base image

Given that we're now depending on unstable releases of E-D-S, we need a
more bleeding-edge distro to cope with this.
