2023-03-25 03:43:57 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- check
|
|
|
|
|
|
|
|
.pacman_install:
|
|
|
|
before_script:
|
|
|
|
# NOTE: Install latest archlinux-keyring before upgrading system. In the
|
|
|
|
# future this should not be needed anymore when we can guarantee a valid
|
|
|
|
# keyring for longer:
|
|
|
|
# https://gitlab.archlinux.org/archlinux/archlinux-keyring/-/issues/4
|
|
|
|
- echo -e "\e[0Ksection_start:`date +%s`:pacman[collapsed=true]\r\e[0KInstalling dependencies"
|
|
|
|
- pacman -Sy --needed --noconfirm archlinux-keyring
|
2024-09-24 16:14:15 +08:00
|
|
|
- pacman --noconfirm -Syu --needed asciidoc make shellcheck m4
|
2023-03-25 03:43:57 +08:00
|
|
|
- echo -e "\e[0Ksection_end:`date +%s`:pacman\r\e[0K"
|
|
|
|
|
|
|
|
check:
|
|
|
|
stage: check
|
|
|
|
extends: .pacman_install
|
2022-11-24 03:17:22 +08:00
|
|
|
script:
|
2023-03-25 03:43:57 +08:00
|
|
|
- make shellcheck
|
|
|
|
|
|
|
|
test:
|
|
|
|
stage: check
|
|
|
|
extends: .pacman_install
|
|
|
|
script:
|
|
|
|
- make check
|