From f1f16e5e26cb7db27f9d2bfac8206b994785bdec Mon Sep 17 00:00:00 2001 From: Martin Kojtal Date: Mon, 27 Aug 2018 15:29:33 +0100 Subject: [PATCH] travis: add MBED BOT to the astyle job --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7ec9015009..9aadb193a0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -132,10 +132,10 @@ matrix: # update status if we succeeded, compare with master if possible - | 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\") | .statuses[] | select(.context == \"travis-ci/$NAME\").description - | capture(\", (?[0-9]+) files\").warnings" \ + | capture(\", (?[0-9]+) files\").files" \ || echo 0) STATUSM="Passed, ${CURR} files"