diff options
author | Johannes Dahlström <johannesd@vaadin.com> | 2012-07-24 15:07:03 +0300 |
---|---|---|
committer | Johannes Dahlström <johannesd@vaadin.com> | 2012-07-24 15:07:03 +0300 |
commit | 8e5ba4d6d5b6c53df884f50bd6c03ee718a88f8e (patch) | |
tree | 2fd49a30604fa048ec485b624a39f6f36d6d15e3 | |
parent | 52d8abf71b94fdc717d55bfdf2e2fa0fc29760a2 (diff) | |
parent | 2a60b689543140176dda020a75e5e96e17d0e26c (diff) | |
download | vaadin-framework-8e5ba4d6d5b6c53df884f50bd6c03ee718a88f8e.tar.gz vaadin-framework-8e5ba4d6d5b6c53df884f50bd6c03ee718a88f8e.zip |
Merge remote-tracking branch 'origin/master'
-rwxr-xr-x | scripts/merge-check.sh | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/scripts/merge-check.sh b/scripts/merge-check.sh index 0debea8b40..ef52cd44f4 100755 --- a/scripts/merge-check.sh +++ b/scripts/merge-check.sh @@ -8,6 +8,9 @@ then exit 3 fi +testname="merge check for `pwd|sed "s/.*\///"`" +echo "##teamcity[testStarted name='$testname' captureStandardOutput='true']" + command="git --no-pager log --no-color $SINCE..$UNTIL" # TODO Why do I get whitespace in the beginning of the wc output? change_count=`$command --oneline|wc -l|tr -d ' '` @@ -15,10 +18,14 @@ change_count=`$command --oneline|wc -l|tr -d ' '` if [ "$change_count" = "0" ] then echo "No unmerged commits" - exit 0 +else + command="$command --format=short" + message="There are $change_count commits that have not been merged from $UNTIL to $SINCE" + echo $message + echo "" + $command + details=`$command|perl -p -e 's/\n/|n/' | sed "s/['\|\[\]]/|\&/g"` + echo "##teamcity[testFailed name='$testname' message='$message' details='|n$details']" fi -echo "There are $change_count commits that have not been merged from $UNTIL to $SINCE: " -echo "" -$command -exit 1
\ No newline at end of file +echo "##teamcity[testFinished name='$testname']" |