# SPDX-FileCopyrightText: 2018-2024 Bruce Cowan <bruce@bcowan.me.uk>
#
# SPDX-License-Identifier: CC0-1.0

image: registry.fedoraproject.org/fedora-minimal:latest
stages:
  - build
  - test

before_script:
  - microdnf -y update
  - microdnf -y install gcc meson "pkgconfig(glib-2.0)" "pkgconfig(libxxhash)"

build:
  stage: build
  script:
  - meson setup builddir
  - meson compile -C builddir
  artifacts:
    paths:
      - builddir

test:
  stage: test
  script:
  - meson test -C builddir --verbose
  artifacts:
    paths:
      - builddir/meson-logs/testlog.txt
