mirror of
https://github.com/minio/minio.git
synced 2025-01-12 15:33:22 -05:00
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.
This commit is contained in:
parent
4f3c9d7677
commit
add1b6cb6b
12
.travis.yml
12
.travis.yml
@ -27,15 +27,7 @@ matrix:
|
|||||||
- CGO_ENABLED=0
|
- CGO_ENABLED=0
|
||||||
- GO111MODULE=on
|
- GO111MODULE=on
|
||||||
- GOPROXY=https://proxy.golang.org
|
- GOPROXY=https://proxy.golang.org
|
||||||
# Enable build cache
|
go: 1.12.x
|
||||||
# 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
|
|
||||||
script:
|
script:
|
||||||
- make
|
- make
|
||||||
- diff -au <(gofmt -s -d cmd) <(printf "")
|
- diff -au <(gofmt -s -d cmd) <(printf "")
|
||||||
@ -54,7 +46,7 @@ matrix:
|
|||||||
- CGO_ENABLED=0
|
- CGO_ENABLED=0
|
||||||
- GO111MODULE=on
|
- GO111MODULE=on
|
||||||
- GOPROXY=https://proxy.golang.org
|
- GOPROXY=https://proxy.golang.org
|
||||||
go: 1.12.5
|
go: 1.12.x
|
||||||
script:
|
script:
|
||||||
- go build --ldflags="$(go run buildscripts/gen-ldflags.go)" -o %GOPATH%\bin\minio.exe
|
- go build --ldflags="$(go run buildscripts/gen-ldflags.go)" -o %GOPATH%\bin\minio.exe
|
||||||
- bash buildscripts/go-coverage.sh
|
- bash buildscripts/go-coverage.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user