travis: add git cookie to get higher rate limits for `go get`

Should fix messages like this from the Travis builds:

```
Daily bandwidth rate limit exceeded for IP 52.0.240.122.
```

Refs https://github.com/golang/go/issues/12933
This commit is contained in:
Paul Hinze 2016-03-21 07:56:18 -05:00
parent b1d9bea641
commit 39b5bd0efb
2 changed files with 13 additions and 16 deletions

View File

@ -1,30 +1,27 @@
sudo: false
language: go
go:
- 1.6
# Need to ensure at least something remains in the install stanza to opt out of
# Travis's built-in 'godep restore', which will fail Travis
# See https://docs.travis-ci.com/user/languages/go#godep-support
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:
- echo noop
# 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
# packages that live there.
# See: https://github.com/golang/go/issues/12933
- bash scripts/gogetcookie.sh
script:
- make test vet
branches:
only:
- master
notifications:
irc:
channels:
- "irc.freenode.org#terraform-tool"
- irc.freenode.org#terraform-tool
skip_join: true
use_notice: true
matrix:
fast_finish: true
allow_failures:

BIN
scripts/gogetcookie.sh.enc Normal file

Binary file not shown.