From bf122d472a11be7dc9df6461c0bf8a098adbb216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Thu, 23 Jul 2020 21:43:37 +0200 Subject: [PATCH] check-commit: minor updates --- src/check-commit | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/check-commit b/src/check-commit index a70a066..1fd46bf 100755 --- a/src/check-commit +++ b/src/check-commit @@ -3,13 +3,13 @@ # CI Ebuild commit tester # Run this in a overlay directory. -# This script uses pkgcheck and repoman +# This script uses pkgcheck and repoman # to check the latest commit for QA issues. # Check if we are in a git repo if ! git status >/dev/null; then - echo "Stop" + echo "Not a git repo... exiting" exit 1 fi @@ -29,7 +29,9 @@ fi # has to download some files (metadata.xsd) # We do that so we can truthfully test the actual latest commit echo ">>> Starting full test" +echo "Running repoman -Idix" repoman -Idix +echo "Running pkgcheck scan" pkgcheck scan @@ -38,6 +40,7 @@ echo ">>> Starting latest commit test" test_success=true # Use pkgchek +echo "Running pkgcheck scan --commits" pkgcheck scan --commits || test_success=false # Iterate through changed files in last commit @@ -59,6 +62,7 @@ do then echo echo "Directory $(pwd):" + echo "Running repoman -Idix" repoman -Idix || test_success=false cd - >/dev/null || return fi