From add1b6cb6b00f384c8e7fed4c8144098ef3be878 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Wed, 21 Aug 2019 13:38:52 -1000 Subject: [PATCH] Remove go mod cache due to buggy travis caching (#8113) There are sporadic failures due to go-mod build caches on travis, deprecate it since we moved to using GOPROXY. --- .travis.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2f7388420..351049d1f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,15 +27,7 @@ matrix: - CGO_ENABLED=0 - GO111MODULE=on - GOPROXY=https://proxy.golang.org - # Enable build cache - # https://restic.net/blog/2018-09-02/travis-build-cache - cache: - directories: - - $HOME/.cache/go-build - - $HOME/gopath/pkg/mod - - $HOME/go/pkg/mod - - go: 1.12.5 + go: 1.12.x script: - make - diff -au <(gofmt -s -d cmd) <(printf "") @@ -54,7 +46,7 @@ matrix: - CGO_ENABLED=0 - GO111MODULE=on - GOPROXY=https://proxy.golang.org - go: 1.12.5 + go: 1.12.x script: - go build --ldflags="$(go run buildscripts/gen-ldflags.go)" -o %GOPATH%\bin\minio.exe - bash buildscripts/go-coverage.sh