From fa54351a64007d09e7245bf55c7d0ab392e1f3af Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Tue, 15 May 2018 11:55:57 -0500 Subject: [PATCH] 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. --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4b671981b1..b2842a6cab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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(\", (?[0-9]+) warnings\").warnings" \ + | capture(\", (?[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"