From dbc3cb1798b0c2b4fd744c753154d654dfa8e118 Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Sun, 8 Apr 2018 17:25:46 -0500 Subject: [PATCH] Fixed Travis rate-limit issue with Github requests Using credentials avoids rate-limiting based on Travis's IP address --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 89f63ab..5c0988b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,7 +35,7 @@ script: if [ "$TRAVIS_TEST_RESULT" -eq 0 ] then CURR=$(tail -n1 sizes | awk '{print $1}') - PREV=$(curl https://api.github.com/repos/$TRAVIS_REPO_SLUG/status/master \ + PREV=$(curl -u $GEKY_BOT_STATUSES https://api.github.com/repos/$TRAVIS_REPO_SLUG/status/master \ | jq -re "select(.sha != \"$TRAVIS_COMMIT\") | .statuses[] | select(.context == \"$STAGE/$NAME\").description | capture(\"code size is (?[0-9]+)\").size" \ @@ -165,7 +165,8 @@ jobs: \"name\": \"$LFS_VERSION\" }" RELEASE=$( - curl -f https://api.github.com/repos/$TRAVIS_REPO_SLUG/releases/tags/$LFS_VERSION + curl -f -u $GEKY_BOT_RELEASES \ + https://api.github.com/repos/$TRAVIS_REPO_SLUG/releases/tags/$LFS_VERSION ) CHANGES=$( git log --oneline $LFS_PREV_VERSION.. --grep='^Merge' --invert-grep