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

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
