archiso/.gitlab-ci.yml
David Runge e2032db4e7
Adding linting for initcpio scripts
archiso/initcpio/install/*:
Setting bash shebang for all scripts and making them comform with shellcheck.

archiso/initcpio/{hooks,script}/*:
Setting ash shebang for all scripts and making them comform with shellcheck (for dash, as shellcheck has no ash specific
ruleset). Essentially the ash based scripts should be POSIX compliant as much as possible to have an easier time
writing, debugging and maintaining them.
Ensuring that variables are not treated as options and introducing variable quoting.

.gitlab-ci.yml:
Integrating shellcheck for initcpio scripts.

Closes #32
2020-07-11 20:58:01 +02:00

22 lines
537 B
YAML

---
default:
image: archlinux/base
before_script:
- pacman --noconfirm -Syy
- pacman --noconfirm -S base-devel shellcheck
lint:
stage: build
script:
- shellcheck -s bash
archiso/mkarchiso
configs/{baseline,releng}/build.sh
configs/releng/airootfs/root/.automated_script.sh
configs/releng/airootfs/usr/local/bin/choose-mirror
scripts/run_archiso.sh
archiso/initcpio/install/*
- shellcheck -s dash
archiso/initcpio/hooks/*
archiso/initcpio/script/*