From 876603004ed05f7caf7e6864d188b72375c64d3a Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Sat, 7 Apr 2018 13:04:47 -0500 Subject: [PATCH] Fixed Travis rate-limit issue with Github requests Using credentials avoids rate-limiting based on Travis's IP address --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ef57dc14ae..8288d507be 100644 --- a/.travis.yml +++ b/.travis.yml @@ -121,7 +121,7 @@ matrix: # update status if we succeeded, compare with master if possible - | CURR=$(grep -o '[0-9]\+ cycles' prof | awk '{sum += $1} END {print sum}') - 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(\"runtime is (?[0-9]+)\").runtime" \ @@ -193,7 +193,7 @@ matrix: # update status if we succeeded, compare with master if possible - | CURR=$(tail -n1 sizes | awk '{print $1}') - 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(\"code size is (?[0-9]+)\").size" \