Casey Callendrello a9abbaf19b
Merge pull request #526 from fedepaol/bumpubuntu
Bump up ubuntu CI ubuntu version to bionic
2020-10-14 17:35:58 +02:00

61 lines
1.0 KiB
YAML

language: go
sudo: required
dist: bionic
go:
- 1.13.x
- 1.14.x
env:
global:
- PATH=$GOROOT/bin:$GOPATH/bin:$PATH
- CGO_ENABLED=0
matrix:
# note: arm64 is tested below
- TARGET=386
- TARGET=amd64
- TARGET=arm
- TARGET=ppc64le
- TARGET=s390x
- TARGET=mips64le
matrix:
fast_finish: true
include:
- os: windows
env: TARGET=amd64
go: 1.13.x
- os: windows
env: TARGET=amd64
go: 1.14.x
- os: linux
env: TARGET=arm64
go: 1.13.x
arch: arm64
- os: linux
env: TARGET=arm64
go: 1.14.x
arch: arm64
install:
- go get github.com/onsi/ginkgo/ginkgo
- go get github.com/containernetworking/cni/cnitool
- go get golang.org/x/tools/cmd/cover
- go get github.com/modocache/gover
- go get github.com/mattn/goveralls
- go mod vendor
script:
- |
if [ "${TARGET}" == $(go env GOARCH) ]; then
GOARCH="${TARGET}" ./test_${TRAVIS_OS_NAME}.sh
else
GOARCH="${TARGET}" ./build_linux.sh
fi
notifications:
email: false
git:
depth: 9999999