Skip to content

Commit fa54351

Browse files
authored
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.
1 parent 8be2e34 commit fa54351

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,13 @@ matrix:
123123
PREV=$(curl https://api.github.com/repos/$TRAVIS_REPO_SLUG/status/master \
124124
| jq -re "select(.sha != \"$TRAVIS_COMMIT\")
125125
| .statuses[] | select(.context == \"travis-ci/$NAME\").description
126-
| capture(\", (?<warnings>[0-9]+) warnings\").warnings" \
126+
| capture(\", (?<files>[0-9]+) files\").warnings" \
127127
|| echo 0)
128128
129-
STATUSM="Passed, ${CURR} warnings"
129+
STATUSM="Passed, ${CURR} files"
130130
if [ "$PREV" -ne 0 ]
131131
then
132-
STATUSM="$STATUSM ($(python -c "print '%+d' % ($CURR-$PREV)") warnings)"
132+
STATUSM="$STATUSM ($(python -c "print '%+d' % ($CURR-$PREV)") files)"
133133
fi
134134
- bash -c "$STATUS" success "$STATUSM"
135135

0 commit comments

Comments
 (0)