Skip to content

Commit

Permalink
Add go-cache to the travis cache (#1767)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCutter authored Jul 11, 2019
1 parent 924a297 commit 074dddd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ addons:

cache:
directories:
- "$HOME/.cache/go-build"
- "$HOME/.cache/go-build-race"
- "$HOME/google-cloud-sdk/"
- "$HOME/gopath/pkg/mod"

Expand Down Expand Up @@ -58,6 +60,10 @@ before_install:
- sudo service mysql start

install:
- |
if [[ "${GOFLAGS}" == *-race* ]]; then
export GOCACHE="$(go env GOCACHE)-race"
fi
- mkdir ../protoc
- |
(
Expand Down

0 comments on commit 074dddd

Please sign in to comment.