# Image from https://hub.docker.com/_/gcc/ based on Debian
image: gcc:9

autoconf:
  stage: build
  before_script:
    - apt-get update &&
      apt-get install -y zip cmake
  script:
    - ./autogen.sh
    - ./configure
    - make
    - make distcheck
  tags:
    - docker

cmake:
  stage: build
  before_script:
    - apt-get update &&
      apt-get install -y cmake ninja-build
  script:
    - mkdir build
    - cmake -S . -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release
    - cmake --build build
  tags:
    - docker

default:
  tags:
    - docker
  # Image from https://hub.docker.com/_/gcc/ based on Debian.
  image: gcc:9

autoconf:
  stage: build
  before_script:
    - apt-get update &&
      apt-get install -y zip cmake
  script:
    - ./autogen.sh
    - ./configure
    - make
    - make distcheck

cmake:
  stage: build
  before_script:
    - apt-get update &&
      apt-get install -y cmake ninja-build
  script:
    - mkdir build
    - cmake -S . -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release
    - cmake --build build

Use the default key for gitab-ci config.
Use the default key for gitab-ci config.

Gitlab now supports a `default` section on the build description,
which sets defaults which can be overridden by specific jobs.

This encapsulates things a little better and avoid duplicating
runner tags.
