From ed6eba7f4f4a1140c6c0d151bd4429659e7d1591 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Wed, 3 May 2017 12:52:05 -0400 Subject: [PATCH] CI: show commit range in log Also print range in the test report. Signed-off-by: Anas Nashif --- .shippable.yml | 1 + scripts/ci/check-compliance.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.shippable.yml b/.shippable.yml index ff6883c339f..22bf2ce298b 100644 --- a/.shippable.yml +++ b/.shippable.yml @@ -27,6 +27,7 @@ build: ci: - export CCACHE_DIR=${SHIPPABLE_BUILD_DIR}/ccache/.ccache - export COMMIT_RANGE=${SHIPPABLE_COMMIT_RANGE} + - echo ${SHIPPABLE_COMMIT_RANGE} - source zephyr-env.sh - ccache -s --max-size=2000M - make host-tools diff --git a/scripts/ci/check-compliance.py b/scripts/ci/check-compliance.py index 11fd2d1d65d..779f006afc5 100755 --- a/scripts/ci/check-compliance.py +++ b/scripts/ci/check-compliance.py @@ -19,7 +19,7 @@ def run_gitlint(tc): msg = proc.stdout.read() if msg != "": - failure = ET.SubElement(tc, 'failure', type="failure", message="commit message error") + failure = ET.SubElement(tc, 'failure', type="failure", message="commit message error on range: %s" %commit_range) failure.text = (str(msg)) return 1