1
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-16 21:56:40 -05:00

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
This commit is contained in:
Mohammed Al Sahaf 2020-05-03 02:24:54 +03:00 committed by GitHub
parent 8e42661060
commit e051e119d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

24
.travis.yml Normal file
View file

@ -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