diff --git a/.travis.yml b/.travis.yml index 6a6ec2e..0abce00 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,15 +1,31 @@ language: go +arch: + - amd64 + - ppc64le +os: + - linux + - osx + - windows go: - - 1.6 + - 1.15.x + - 1.14.x + - 1.13.x + - 1.12.x + - tip script: - # build test for supported platforms - - GOOS=linux go build - - GOOS=darwin go build - - GOOS=freebsd go build - - GOOS=windows go build - - GOARCH=386 go build - - # run tests on a standard platform - - go test -v ./... + - go test -v -cover -race ./... + +jobs: + allow_failures: + - go: tip + + include: + - stage: cross compilation + script: + - GOOS=linux go build + - GOOS=darwin go build + - GOOS=freebsd go build + - GOOS=windows go build + - GOARCH=386 go build diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..be783c1 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/valyala/bytebufferpool + +go 1.12