2020-06-25 23:01:54 +02:00
|
|
|
---
|
2020-05-30 00:01:28 +02:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
2020-06-25 23:01:54 +02:00
|
|
|
|
|
|
|
default:
|
2021-01-31 16:28:57 +01:00
|
|
|
image: "archlinux:latest"
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- lint
|
|
|
|
- build
|
|
|
|
|
|
|
|
shellcheck:
|
|
|
|
stage: lint
|
2020-06-25 23:01:54 +02:00
|
|
|
before_script:
|
2021-01-31 16:28:57 +01:00
|
|
|
- pacman --noconfirm -Syu --needed make shellcheck
|
|
|
|
script:
|
|
|
|
- make lint
|
2020-06-25 23:01:54 +02:00
|
|
|
|
2021-01-31 16:28:57 +01:00
|
|
|
.build:
|
2020-06-25 23:01:54 +02:00
|
|
|
stage: build
|
2021-01-31 16:28:57 +01:00
|
|
|
before_script:
|
|
|
|
- pacman -Syu --needed --noconfirm qemu-headless libisoburn
|
2020-06-25 23:01:54 +02:00
|
|
|
script:
|
2021-01-31 16:28:57 +01:00
|
|
|
- ./.gitlab/ci/build-host.sh
|
|
|
|
after_script:
|
2021-02-06 09:49:55 +01:00
|
|
|
- echo "image_size_mebibytes{image=\"${PROFILE}\"} $(du -m output/${PROFILE}/*iso)" > metrics.txt
|
2021-01-31 16:28:57 +01:00
|
|
|
parallel:
|
|
|
|
matrix:
|
|
|
|
- PROFILE: [baseline, releng]
|
|
|
|
artifacts:
|
|
|
|
name: "output"
|
|
|
|
paths:
|
|
|
|
- "output/*/*"
|
|
|
|
expire_in: 2d
|
|
|
|
reports:
|
|
|
|
metrics: metrics.txt
|
|
|
|
|
|
|
|
build:
|
|
|
|
extends: .build
|
|
|
|
tags:
|
|
|
|
- fast-single-thread
|
|
|
|
except:
|
2021-03-14 11:27:30 +01:00
|
|
|
- master@archlinux/archiso
|
|
|
|
- schedules@archlinux/archiso
|
|
|
|
- tags@archlinux/archiso
|
2021-01-31 16:28:57 +01:00
|
|
|
|
|
|
|
build:secure:
|
|
|
|
extends: .build
|
|
|
|
tags:
|
|
|
|
- secure
|
|
|
|
only:
|
2021-03-14 11:27:30 +01:00
|
|
|
- master@archlinux/archiso
|
|
|
|
- schedules@archlinux/archiso
|
|
|
|
- tags@archlinux/archiso
|