From 81c9bf574ea893e6b4630d5affb0898a2ff22b84 Mon Sep 17 00:00:00 2001 From: Solly Ross Date: Wed, 15 May 2019 13:43:22 -0700 Subject: [PATCH] Cache go directories on Travis This caches the go mod and go build cache directories, which should speed up test runs. --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index 4b33fdb3fa..1562e222fa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,11 @@ os: - linux - osx +cache: + directories: + - $HOME/.cache/go-build + - $GOPATH/pkg/mod + go: - "1.12"