Skip to content
Browse files

Increase rate limit for go get on go.googlesource.com for Travis CI

1 parent 5a7db2d commit 0fc7f7233a0a31f83e9b9f7ac174798131eac4c6 @celrenheit committed
Showing with 14 additions and 0 deletions.
  1. +1 −0 .travis.yml
  2. +13 −0 scripts/gogetcookie.sh
View
1 .travis.yml
@@ -6,6 +6,7 @@ go:
- 1.6
- tip
install:
+ - bash scripts/gogetcookie.sh
- go get -t -v ./...
script:
- go test -v ./...
View
13 scripts/gogetcookie.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+# https://github.com/golang/go/issues/12933
+
+touch ~/.gitcookies
+chmod 0600 ~/.gitcookies
+
+git config --global http.cookiefile ~/.gitcookies
+
+tr , \\t <<\__END__ >>~/.gitcookies
+go.googlesource.com,FALSE,/,TRUE,2147483647,o,git-celrenheit.gmail.com=1/ayC7N4Y01-O8fhm2H1BJdpXZwi1tKlIOutPnw3kw2R4
+go-review.googlesource.com,FALSE,/,TRUE,2147483647,o,git-celrenheit.gmail.com=1/ayC7N4Y01-O8fhm2H1BJdpXZwi1tKlIOutPnw3kw2R4
+__END__

0 comments on commit 0fc7f72

Please sign in to comment.
Something went wrong with that request. Please try again.