Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: add cross tests and bump Go versions #43

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
language: go
dist: xenial
go:
- 1.12.x
- 1.13.x
- 1.14.x
- 1.15.x
addons:
apt:
packages:
- qemu-user-static
- binfmt-support
script:
- export GO111MODULE=on
- diff -u <(echo -n) <(gofmt -d *.go)
- diff -u <(echo -n) <(golint $(go list -e ./...) | grep -v YAMLToJSON)
- GO111MODULE=on go vet .
- GO111MODULE=on go test -v -race ./...
- go vet .
- go test -v -race ./...
- for arch in arm arm64 s390x ppc64le; do
echo Cross test on $arch;
GOARCH=$arch go test -v ./...;
done
- git diff --exit-code
install:
- GO111MODULE=off go get golang.org/x/lint/golint