From ecd339278d767b9ff174964df4a75deb3e2788b0 Mon Sep 17 00:00:00 2001 From: nl6720 Date: Thu, 16 Jul 2020 14:40:27 +0300 Subject: 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. --- .gitlab-ci.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 74ecdd3..e69ab5e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,19 +3,9 @@ default: image: archlinux/base before_script: - - pacman --noconfirm -Syy - - pacman --noconfirm -S base-devel shellcheck + - pacman --noconfirm -Syu --needed 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/* + - make check -- cgit v1.2.3-70-g09d2