Skip to content

Commit 8766030

Browse files
authored
Fixed Travis rate-limit issue with Github requests
Using credentials avoids rate-limiting based on Travis's IP address
1 parent 192a8e5 commit 8766030

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ matrix:
121121
# update status if we succeeded, compare with master if possible
122122
- |
123123
CURR=$(grep -o '[0-9]\+ cycles' prof | awk '{sum += $1} END {print sum}')
124-
PREV=$(curl https://api.github.com/repos/$TRAVIS_REPO_SLUG/status/master \
124+
PREV=$(curl -u "$MBED_BOT" https://api.github.com/repos/$TRAVIS_REPO_SLUG/status/master \
125125
| jq -re "select(.sha != \"$TRAVIS_COMMIT\")
126126
| .statuses[] | select(.context == \"travis-ci/$NAME\").description
127127
| capture(\"runtime is (?<runtime>[0-9]+)\").runtime" \
@@ -193,7 +193,7 @@ matrix:
193193
# update status if we succeeded, compare with master if possible
194194
- |
195195
CURR=$(tail -n1 sizes | awk '{print $1}')
196-
PREV=$(curl https://api.github.com/repos/$TRAVIS_REPO_SLUG/status/master \
196+
PREV=$(curl -u "$MBED_BOT" https://api.github.com/repos/$TRAVIS_REPO_SLUG/status/master \
197197
| jq -re "select(.sha != \"$TRAVIS_COMMIT\")
198198
| .statuses[] | select(.context == \"travis-ci/$NAME\").description
199199
| capture(\"code size is (?<size>[0-9]+)\").size" \

0 commit comments

Comments
 (0)