Check all the scripts, under 'rootfs/etc/initramfs-tools' (for now) with 'shellcheck'. A couple of checks are excluded of which SC1090 and SC1091 will remain. But SC2086 and especially SC2154 should be fixed! And when they are fixed in the current code, those should be enabled again for checking. Also rename 'check yamls' job to 'yamllint', so that's directly clear which tool is being used.
44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
---
|
|
stages:
|
|
# Garbage in is garbage out, so verify our input
|
|
- check input
|
|
- build
|
|
|
|
variables:
|
|
DEBIAN_FRONTEND: "noninteractive"
|
|
# At https://salsa.debian.org/salsa-ci-team/pipeline/container_registry one can see which images are available
|
|
SALSA_CI_IMAGES: registry.salsa.debian.org/salsa-ci-team/pipeline
|
|
BASE_CI_IMAGES: ${SALSA_CI_IMAGES}/base
|
|
|
|
yamllint:
|
|
stage: check input
|
|
image: $BASE_CI_IMAGES:unstable
|
|
dependencies: []
|
|
script:
|
|
- apt-get update && apt-get upgrade -y
|
|
- apt-get install -y yamllint
|
|
- yamllint -c debian/yamllint.yml .
|
|
|
|
shellcheck:
|
|
stage: check input
|
|
image: $BASE_CI_IMAGES:unstable
|
|
dependencies: []
|
|
script:
|
|
- apt-get update && apt-get upgrade -y
|
|
- apt-get install -y shellcheck
|
|
- shellcheck -e SC1090,SC1091,SC2086,SC2154 -s dash $(find rootfs/etc/initramfs-tools -type f -executable | xargs grep -l '^#!/bin/sh')
|
|
|
|
build yamls:
|
|
stage: build
|
|
image: $BASE_CI_IMAGES:unstable
|
|
dependencies: []
|
|
script:
|
|
- apt-get update && apt-get upgrade -y
|
|
- eatmydata apt-get install -y vmdb2 dosfstools qemu-utils qemu-user-static debootstrap binfmt-support time kpartx bmap-tools python3 fakemachine make
|
|
- make yaml
|
|
- mkdir build
|
|
- cp raspi*.yaml build/
|
|
artifacts:
|
|
paths:
|
|
- build/
|