summaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorDan Radez <dradez@redhat.com>2016-07-06 09:50:16 -0400
committerDan Radez <dradez@redhat.com>2016-07-06 10:04:06 -0400
commit169bcc4f01feeb02599b3c81e146b120fd5ed9a7 (patch)
treed7a5828c8e9faa68d2bed8a9ad80c306a4ae52a0 /ci
parent6e26a8b75cb70ba0af3aae82733ea70127dd616b (diff)
forcing rpm-check if files added to the commit
Change-Id: I88514fe95121ecc7e6e4cbb41f529404c815bf06 Signed-off-by: Dan Radez <dradez@redhat.com>
Diffstat (limited to 'ci')
-rwxr-xr-xci/build.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/ci/build.sh b/ci/build.sh
index fd079c91..af065b11 100755
--- a/ci/build.sh
+++ b/ci/build.sh
@@ -112,10 +112,10 @@ fi
# Conditionally execute RPM build checks if the specs change and target is not rpm or iso
if [[ "$MAKE_TARGETS" == "images" ]]; then
- commit_file_list=$(git show --pretty="format:" --name-only)
+ commit_file_list=$(git show --pretty="format:" --name-status)
if git show -s | grep "force-build-rpms"; then
MAKE_TARGETS+=" rpms"
- elif [[ $commit_file_list == *build/Makefile* ]]; then
+ elif [[ $commit_file_list == *"A$(printf '\t')"* || $commit_file_list == *build/Makefile* ]]; then
# Makefile forces all rpms to be checked
MAKE_TARGETS+=" rpms-check"
else