Switch to Go modules, update dependencies

This commit is contained in:
2020-07-10 22:09:56 -07:00
parent 0ade0b9817
commit a801484c28
254 changed files with 21390 additions and 88916 deletions

View File

@@ -0,0 +1,48 @@
language: go
go:
- 1.9.x
- 1.10.x
- 1.11.x
- 1.12.x
- 1.13.x
- 1.14.x
- tip
os:
- linux
- linux-ppc64le
- osx
matrix:
allow_failures:
- go: tip
install:
- go get -v -t ./...
before_script:
- |
if [[ $TRAVIS_GO_VERSION == 1.14 && $(arch) != 'ppc64le' ]]; then
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin
fi
script:
- |
if [ $(arch) == "ppc64le" ]; then
go test -cpu 1,4 -v
else
go test -race -cpu 1,4 -v
fi
- |
if [ $(arch) == "ppc64le" ]; then
go test -v -tags appengine
else
go test -race -v -tags appengine
fi
- |
if [[ $TRAVIS_GO_VERSION == 1.14 && $(arch) != 'ppc64le' ]]; then
golangci-lint run
fi
sudo: false