From e051e119d1dff75972ed9b07cf97bbb989ba8daa Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Sun, 3 May 2020 02:24:54 +0300 Subject: ci: add tests on s390x and ppc64le (#3328) * ci: add tests on s390x and ppc64le * ci: use Travis as CI for ppc64le and s390x * ci: cache Go builds on Travis * ci: avoid Travis duplicate builds --- .travis.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..d5dc303 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,24 @@ +branches: + only: + - master +language: go +go: + - 1.14.x +dist: bionic +arch: + - ppc64le + - s390x +env: + - GO111MODULE=on CGO_ENABLED=0 +cache: + directories: + - $GOPATH/pkg/mod + - /home/travis/.cache/go-build +git: + depth: 1 + +install: + - go get -v -t -d ./... +script: + - go test -v -short ./... + - go build -trimpath -ldflags="-w -s" -v -o cmd/caddy/caddy cmd/caddy/main.go -- cgit v1.2.3