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

image: alpine:latest
stages:
  - build
  - test

before_script:
  - apk update && apk add build-base meson glib xxhash-dev

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

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