From f124eb692c13d3272415a9e6a35195d4637a672d Mon Sep 17 00:00:00 2001 From: Paul Rogalinski Date: Wed, 1 Apr 2015 00:23:30 +0200 Subject: [PATCH] sumitting last 10 entries from the commit log --- .travis.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.travis.sh b/.travis.sh index 22e8a53e4..689fa36dd 100755 --- a/.travis.sh +++ b/.travis.sh @@ -7,7 +7,8 @@ else make -j2 BRANCH=$(git rev-parse --abbrev-ref HEAD) - REVISION=$(git rev-parse HEAD) + REVISION=$(git rev-parse --short HEAD) + RECENT_COMMITS=$(git log -n 10) TARGET_FILE=obj/cleanflight_${TARGET} if [ -f ${TARGET_FILE}.bin ]; @@ -21,7 +22,11 @@ else exit 1 fi - curl --form "file=@${TARGET_FILE}" --form "revision=${REVISION}" --form "branch=${BRANCH}" ${PUBLISH_URL} + curl \ + --form "file=@${TARGET_FILE}" \ + --form "revision=${REVISION}" \ + --form "branch=${BRANCH}" \ + --form "recent_commits=${RECENT_COMMITS}" ${PUBLISH_URL} else make -j2 fi