travis: switch to unencrypted cookie

Otherwise rate limiting fix does not work for PRs from forks
This commit is contained in:
Paul Hinze 2016-03-21 13:35:07 -05:00
parent 910a7fca98
commit d38ee00039
3 changed files with 10 additions and 3 deletions

View File

@ -2,9 +2,6 @@ sudo: false
language: go language: go
go: go:
- 1.6 - 1.6
before_install:
- openssl aes-256-cbc -K $encrypted_409871ff96c7_key -iv $encrypted_409871ff96c7_iv
-in scripts/gogetcookie.sh.enc -out scripts/gogetcookie.sh -d
install: install:
# This script is used by the Travis build to install a cookie for # This script is used by the Travis build to install a cookie for
# go.googlesource.com so rate limits are higher when using `go get` to fetch # go.googlesource.com so rate limits are higher when using `go get` to fetch

10
scripts/gogetcookie.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
touch ~/.gitcookies
chmod 0600 ~/.gitcookies
git config --global http.cookiefile ~/.gitcookies
tr , \\t <<\__END__ >>~/.gitcookies
.googlesource.com,TRUE,/,TRUE,2147483647,o,git-paul.hashicorp.com=1/z7s05EYPudQ9qoe6dMVfmAVwgZopEkZBb1a2mA5QtHE
__END__

Binary file not shown.