Travis: run tests on arm64

Signed-off-by: Casey Callendrello <cdc@redhat.com>
This commit is contained in:
Casey Callendrello 2020-10-07 17:32:30 +02:00
parent e78e6aa5b9
commit 1a7f1bd8b1

View File

@ -11,10 +11,10 @@ env:
- PATH=$GOROOT/bin:$GOPATH/bin:$PATH
- CGO_ENABLED=0
matrix:
# note: arm64 is tested below
- TARGET=386
- TARGET=amd64
- TARGET=arm
- TARGET=arm64
- TARGET=ppc64le
- TARGET=s390x
- TARGET=mips64le
@ -28,6 +28,14 @@ matrix:
- 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
@ -39,7 +47,7 @@ install:
script:
- |
if [ "${TARGET}" == "amd64" ]; then
if [ "${TARGET}" == $(go env GOARCH) ]; then
GOARCH="${TARGET}" ./test_${TRAVIS_OS_NAME}.sh
else
GOARCH="${TARGET}" ./build_linux.sh