image: fedora:latest

variables:
  DEPENDENCIES: chrpath vala gtk-doc
                gobject-introspection-devel libxml2-devel
                libsoup-devel glib2-devel gtk3-devel
                liboauth-devel totem-pl-parser-devel
                meson redhat-rpm-config gcc gcc-c++ glibc-devel

build_stable:
  before_script:
    # Work-around https://bugzilla.redhat.com/show_bug.cgi?id=1607172#c4
    - echo "update dnf gdbm" >> translist.txt
    - echo "remove python3-modulemd" >> translist.txt
    - dnf shell -y --nogpgcheck translist.txt
    - dnf update -y --nogpgcheck
    - dnf install -y --nogpgcheck $DEPENDENCIES
  script:
    - meson . _build --prefix=/usr
    - ninja -C _build
    - ninja -C _build install
    - ninja -C _build test

image: fedora:rawhide

variables:
  DEPENDENCIES: chrpath vala gtk-doc
                gobject-introspection-devel libxml2-devel
                libsoup-devel glib2-devel gtk3-devel
                liboauth-devel totem-pl-parser-devel
                meson redhat-rpm-config gcc gcc-c++ glibc-devel

build_stable:
  before_script:
    # Work-around https://bugzilla.redhat.com/show_bug.cgi?id=1607172#c4
    - echo "update dnf gdbm" >> translist.txt
    - echo "remove python3-modulemd" >> translist.txt
    - dnf shell -y --nogpgcheck translist.txt
    - dnf update -y --nogpgcheck
    - dnf install -y --nogpgcheck $DEPENDENCIES
  script:
    - meson . _build --prefix=/usr
    - ninja -C _build
    - ninja -C _build install
    - ninja -C _build test

Revert "ci: use stable fedora to fix ci"
Revert "ci: use stable fedora to fix ci"

GNOME CI runners have been updated to the latest libseccomp so the
problem should no longer happen.

This reverts commit 5dfaa6cf0751f66fb3053d2705e9e03d18175e29.
