Merge pull request #7898 from 0xc0170/fix_astyle_common

Travis: fix astyle report (-/+ files)
pull/8364/merge
Cruz Monrreal 2018-10-10 08:40:28 -05:00 committed by GitHub
commit dc4a52c727
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -132,10 +132,10 @@ matrix:
# update status if we succeeded, compare with master if possible # update status if we succeeded, compare with master if possible
- | - |
CURR=$(cat astyle-branch.out | grep Formatted | wc -l) CURR=$(cat astyle-branch.out | grep Formatted | wc -l)
PREV=$(curl https://api.github.com/repos/$TRAVIS_REPO_SLUG/status/master \ PREV=$(curl -u "$MBED_BOT" https://api.github.com/repos/$TRAVIS_REPO_SLUG/status/master \
| jq -re "select(.sha != \"$TRAVIS_COMMIT\") | jq -re "select(.sha != \"$TRAVIS_COMMIT\")
| .statuses[] | select(.context == \"travis-ci/$NAME\").description | .statuses[] | select(.context == \"travis-ci/$NAME\").description
| capture(\", (?<files>[0-9]+) files\").warnings" \ | capture(\", (?<files>[0-9]+) files\").files" \
|| echo 0) || echo 0)
STATUSM="Passed, ${CURR} files" STATUSM="Passed, ${CURR} files"