From fcfb917d93bd5a2edb3bf5581fa06843b1cf7b68 Mon Sep 17 00:00:00 2001 From: Matthias Diester Date: Sun, 8 Dec 2019 10:06:31 +0100 Subject: [PATCH] Add Go mod directory to cache directories The Go modules are downloaded for each run and in theory it should be safe to keep them around for multiple runs. Add the Go modules directory to the list of cached directories. --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index 274ab57..a2d152c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,10 @@ language: go go: - 1.12.x +cache: + directories: + - $GOPATH/pkg/mod + os: - linux