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,31 +1,28 @@
sudo: false sudo: false
language: go language: go
go: go:
- 1.6 - 1.6
before_install:
# Need to ensure at least something remains in the install stanza to opt out of - openssl aes-256-cbc -K $encrypted_409871ff96c7_key -iv $encrypted_409871ff96c7_iv
# Travis's built-in 'godep restore', which will fail Travis -in scripts/gogetcookie.sh.enc -out scripts/gogetcookie.sh -d
# See https://docs.travis-ci.com/user/languages/go#godep-support
install: 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: script:
- make test vet - make test vet
branches: branches:
only: only:
- master - master
notifications: notifications:
irc: irc:
channels: channels:
- "irc.freenode.org#terraform-tool" - irc.freenode.org#terraform-tool
skip_join: true skip_join: true
use_notice: true use_notice: true
matrix: matrix:
fast_finish: true fast_finish: true
allow_failures: allow_failures:
- go: tip - go: tip

BIN
scripts/gogetcookie.sh.enc Normal file

Binary file not shown.