diff --git a/ci-build.sh b/ci-build.sh index 01a91e43ae..9b308242ba 100644 --- a/ci-build.sh +++ b/ci-build.sh @@ -20,6 +20,10 @@ message 'Processing changes' "${commits[@]}" test -z "${packages}" && success 'No changes in package recipes' define_build_order || failure 'Could not determine build order' +# Quality +message 'Checking recipe quality' +check_recipe_quality || failure 'Could not pass quality check' + # Build message 'Building packages' "${packages[@]}" execute 'Upgrading the system' pacman --noconfirm --noprogressbar --sync --refresh --refresh --sysupgrade --sysupgrade diff --git a/ci-library.sh b/ci-library.sh index 5984155e54..13bbfaac78 100644 --- a/ci-library.sh +++ b/ci-library.sh @@ -182,6 +182,11 @@ list_packages() { return 0 } +# Recipe quality +check_recipe_quality() { + saneman --format='\t%l:%c %p:%c %m' --verbose --no-terminal "${packages[@]}" +} + # Status functions failure() { local status="${1}"; local items=("${@:2}"); _status failure "${status}." "${items[@]}"; exit 1; } success() { local status="${1}"; local items=("${@:2}"); _status success "${status}." "${items[@]}"; exit 0; }