From 1efd1029ddd80c029ba2b82413a4febdec08ed86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa=20de=20Ant=C3=B3n?= Date: Tue, 22 Mar 2016 16:08:29 +0100 Subject: [PATCH 1/2] Only bypass "bandwidth limit exceeded" errors on pushes --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8e3525b5..2df19233 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,7 @@ before_install: # for git to use when cloning from googlesource.com. # Bypasses "bandwidth limit exceeded" errors. # See github.com/golang/go/issues/12933 - - openssl aes-256-cbc -K $encrypted_3df18f9af81d_key -iv $encrypted_3df18f9af81d_iv -in dist/gitcookie.sh.enc -out dist/gitcookie.sh -d + - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then openssl aes-256-cbc -K $encrypted_3df18f9af81d_key -iv $encrypted_3df18f9af81d_iv -in dist/gitcookie.sh.enc -out dist/gitcookie.sh -d; fi install: - bash dist/gitcookie.sh From ea35893be46c9b894847dce9ad3c2173602fad90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa=20de=20Ant=C3=B3n?= Date: Tue, 22 Mar 2016 16:15:17 +0100 Subject: [PATCH 2/2] run bash dist/gitcookie.sh step only on build pushes --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2df19233..f321b281 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,7 @@ before_install: - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then openssl aes-256-cbc -K $encrypted_3df18f9af81d_key -iv $encrypted_3df18f9af81d_iv -in dist/gitcookie.sh.enc -out dist/gitcookie.sh -d; fi install: - - bash dist/gitcookie.sh + - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash dist/gitcookie.sh; fi - go get -t ./... - go get golang.org/x/tools/cmd/vet