stages:
- test

build-fedora:
  image: fedora:latest
  stage: test
  before_script:
    - dnf install -y gcc redhat-rpm-config meson gtk-doc glib2-devel gobject-introspection-devel gdk-pixbuf2-devel sqlite-devel pygobject3-devel python3-devel
    # scriptlets bug?
    - gdk-pixbuf-query-loaders-64 > /usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders.cache
  script:
    - meson _build
    - G_MESSAGES_DEBUG=all ninja -C _build test
    - ninja -C _build install


stages:
- test

variables:
  DEPENDENCIES:
    gcc
    redhat-rpm-config
    meson
    gtk-doc
    glib2-devel
    gobject-introspection-devel
    gdk-pixbuf2-devel
    sqlite-devel
    pygobject3-devel
    python3-devel

build-fedora:
  image: fedora:latest
  stage: test
  before_script:
    - dnf install -y $DEPENDENCIES
    # scriptlets bug?
    - gdk-pixbuf-query-loaders-64 > /usr/lib64/gdk-pixbuf-2.0/2.10.0/loaders.cache
  script:
    - meson _build
    - G_MESSAGES_DEBUG=all ninja -C _build test
    - ninja -C _build install


Split off dependencies into a variable
ci: Split off dependencies into a variable
