travis: add MBED BOT to the astyle job

pull/7898/head
Martin Kojtal 2018-08-27 15:29:33 +01:00
parent a24cecfc94
commit f1f16e5e26
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"