Add check target to Makefile
Makefile: Move shellcheck commands from .gitlab-ci.yml. .gitlab-ci.yml: Run `make check`. Prevent partial upgrades, i.e. use '-Syu'. Prevent reinstalling already installed packages by using pacman's '--needed' option. Don't force-download the package database.
This commit is contained in:
parent
6f0a15c34a
commit
ecd339278d
@ -3,19 +3,9 @@
|
|||||||
default:
|
default:
|
||||||
image: archlinux/base
|
image: archlinux/base
|
||||||
before_script:
|
before_script:
|
||||||
- pacman --noconfirm -Syy
|
- pacman --noconfirm -Syu --needed base-devel shellcheck
|
||||||
- pacman --noconfirm -S base-devel shellcheck
|
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- shellcheck -s bash
|
- make check
|
||||||
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/*
|
|
||||||
|
11
Makefile
11
Makefile
@ -13,6 +13,15 @@ DOC_DIR=$(DESTDIR)/usr/share/doc/archiso
|
|||||||
|
|
||||||
all:
|
all:
|
||||||
|
|
||||||
|
check:
|
||||||
|
shellcheck -s bash archiso/mkarchiso \
|
||||||
|
scripts/run_archiso.sh \
|
||||||
|
$(INSTALL_FILES) \
|
||||||
|
$(wildcard configs/*/build.sh) \
|
||||||
|
configs/releng/airootfs/root/.automated_script.sh \
|
||||||
|
configs/releng/airootfs/usr/local/bin/choose-mirror
|
||||||
|
shellcheck -s dash $(HOOKS_FILES) $(SCRIPT_FILES)
|
||||||
|
|
||||||
install: install-program install-initcpio install-examples install-doc
|
install: install-program install-initcpio install-examples install-doc
|
||||||
|
|
||||||
install-program:
|
install-program:
|
||||||
@ -32,4 +41,4 @@ install-doc:
|
|||||||
install -d $(DOC_DIR)
|
install -d $(DOC_DIR)
|
||||||
install -m 644 -t $(DOC_DIR) $(DOC_FILES)
|
install -m 644 -t $(DOC_DIR) $(DOC_FILES)
|
||||||
|
|
||||||
.PHONY: install install-program install-initcpio install-examples install-doc
|
.PHONY: check install install-program install-initcpio install-examples install-doc
|
||||||
|
Loading…
Reference in New Issue
Block a user