mirror of https://github.com/ARMmbed/mbed-os.git
Travis: Quick name-fix for warnings reported by Astyle
Currently Astyle is reporting files with warnings, not the actual count of warnings. This is a bug, but fixing right now will cause incorrect results. At least for the short-term we can change the name to avoid as much confusion as possible.pull/6917/head
parent
8be2e34390
commit
fa54351a64
|
@ -123,13 +123,13 @@ matrix:
|
|||
PREV=$(curl https://api.github.com/repos/$TRAVIS_REPO_SLUG/status/master \
|
||||
| jq -re "select(.sha != \"$TRAVIS_COMMIT\")
|
||||
| .statuses[] | select(.context == \"travis-ci/$NAME\").description
|
||||
| capture(\", (?<warnings>[0-9]+) warnings\").warnings" \
|
||||
| capture(\", (?<files>[0-9]+) files\").warnings" \
|
||||
|| echo 0)
|
||||
|
||||
STATUSM="Passed, ${CURR} warnings"
|
||||
STATUSM="Passed, ${CURR} files"
|
||||
if [ "$PREV" -ne 0 ]
|
||||
then
|
||||
STATUSM="$STATUSM ($(python -c "print '%+d' % ($CURR-$PREV)") warnings)"
|
||||
STATUSM="$STATUSM ($(python -c "print '%+d' % ($CURR-$PREV)") files)"
|
||||
fi
|
||||
- bash -c "$STATUS" success "$STATUSM"
|
||||
|
||||
|
|
Loading…
Reference in New Issue