Skip to content

Commit dbc3cb1

Browse files
committed
Fixed Travis rate-limit issue with Github requests
Using credentials avoids rate-limiting based on Travis's IP address
1 parent 93ece2e commit dbc3cb1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ script:
3535
if [ "$TRAVIS_TEST_RESULT" -eq 0 ]
3636
then
3737
CURR=$(tail -n1 sizes | awk '{print $1}')
38-
PREV=$(curl https://api.github.com/repos/$TRAVIS_REPO_SLUG/status/master \
38+
PREV=$(curl -u $GEKY_BOT_STATUSES https://api.github.com/repos/$TRAVIS_REPO_SLUG/status/master \
3939
| jq -re "select(.sha != \"$TRAVIS_COMMIT\")
4040
| .statuses[] | select(.context == \"$STAGE/$NAME\").description
4141
| capture(\"code size is (?<size>[0-9]+)\").size" \
@@ -165,7 +165,8 @@ jobs:
165165
\"name\": \"$LFS_VERSION\"
166166
}"
167167
RELEASE=$(
168-
curl -f https://api.github.com/repos/$TRAVIS_REPO_SLUG/releases/tags/$LFS_VERSION
168+
curl -f -u $GEKY_BOT_RELEASES \
169+
https://api.github.com/repos/$TRAVIS_REPO_SLUG/releases/tags/$LFS_VERSION
169170
)
170171
CHANGES=$(
171172
git log --oneline $LFS_PREV_VERSION.. --grep='^Merge' --invert-grep

0 commit comments

Comments
 (0)