Skip to content
.gitlab-ci.yml 765 B
Newer Older
nimrod's avatar
CI.
nimrod committed
---
nimrod's avatar
nimrod committed
include:
  - project: shore/ci-templates
    file: templates/pre-commit.yml

nimrod's avatar
nimrod committed
stages:
  - test
  - build

nimrod's avatar
nimrod committed
variables:
  VERSION: 0.0.99

nimrod's avatar
CI.
nimrod committed
build:
nimrod's avatar
nimrod committed
  stage: build
nimrod's avatar
CI.
nimrod committed
  image: buildpack-deps:bullseye
  before_script:
    - apt-get update
nimrod's avatar
nimrod committed
    - >-
      apt-get install -y
      bash-completion
      cmake
      golang
      go-md2man
      meson
      podman
      shellcheck
      systemd
nimrod's avatar
nimrod committed
    - >-
      git clone
      --depth=1
      "--branch=$VERSION"
      https://github.com/containers/toolbox.git
nimrod's avatar
CI.
nimrod committed
    - cd toolbox
  script:
    - meson -Dprofile_dir=/etc/profile.d builddir
    - ninja -C builddir
  artifacts:
    paths:
      - toolbox/builddir/src/toolbox
      - toolbox/builddir/doc/
      - toolbox/builddir/meson-logs/
      - toolbox/builddir/.ninja_log