image: fedora:latest
stages:
  - build
  - test

before_script:
  - dnf install -y gcc meson ninja-build "pkgconfig(glib-2.0)"

build:
  stage: build
  script:
  - meson builddir
  - ninja -C builddir
  artifacts:
    paths:
      - builddir

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