2015-06-19 18:24:30 +03:00
|
|
|
language: go
|
|
|
|
|
2016-02-19 17:32:27 +03:00
|
|
|
os:
|
|
|
|
- linux
|
2020-05-09 11:35:17 +03:00
|
|
|
- osx
|
|
|
|
- windows
|
|
|
|
|
|
|
|
arch:
|
|
|
|
- amd64
|
|
|
|
- arm64
|
|
|
|
- ppc64le
|
|
|
|
- s390x
|
2016-02-19 17:32:27 +03:00
|
|
|
|
2015-06-19 18:24:30 +03:00
|
|
|
go:
|
2020-05-03 22:53:25 +03:00
|
|
|
- 1.14.x
|
2020-09-01 14:13:31 +03:00
|
|
|
- 1.15.x
|
2021-03-26 12:07:40 +03:00
|
|
|
- 1.16.x
|
2017-02-19 13:13:22 +03:00
|
|
|
- master
|
2015-06-25 14:18:12 +03:00
|
|
|
|
2021-03-26 12:07:40 +03:00
|
|
|
env:
|
|
|
|
- GO111MODULE=off CGO_ENABLED=0
|
|
|
|
|
2015-11-03 14:13:11 +03:00
|
|
|
install:
|
2015-11-03 14:17:06 +03:00
|
|
|
- go get ./...
|
2015-11-03 14:13:11 +03:00
|
|
|
|
2020-05-14 13:04:55 +03:00
|
|
|
script:
|
2015-11-03 14:13:11 +03:00
|
|
|
- go vet ./...
|
2020-05-09 11:35:17 +03:00
|
|
|
- go test -cpu=1,2 .
|
|
|
|
- go test -tags=noasm -cpu=1,2 .
|
2015-06-25 14:18:12 +03:00
|
|
|
- go build examples/simple-decoder.go
|
|
|
|
- go build examples/simple-encoder.go
|
2015-10-27 15:57:35 +03:00
|
|
|
- go build examples/stream-decoder.go
|
|
|
|
- go build examples/stream-encoder.go
|
2017-02-19 13:13:22 +03:00
|
|
|
|
2020-05-09 11:35:17 +03:00
|
|
|
jobs:
|
2017-02-19 13:13:22 +03:00
|
|
|
allow_failures:
|
|
|
|
- go: 'master'
|
2020-05-14 15:29:53 +03:00
|
|
|
- arch: s390x
|
2017-02-19 13:13:22 +03:00
|
|
|
fast_finish: true
|
2020-05-09 11:35:17 +03:00
|
|
|
include:
|
2021-03-26 12:07:40 +03:00
|
|
|
- stage: other
|
|
|
|
go: 1.16.x
|
2020-05-09 11:35:17 +03:00
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
script:
|
2020-05-14 13:04:55 +03:00
|
|
|
- diff <(gofmt -d .) <(printf "")
|
|
|
|
- diff <(gofmt -d ./examples) <(printf "")
|
2021-03-26 12:07:40 +03:00
|
|
|
- go get github.com/klauspost/asmfmt&&go install github.com/klauspost/asmfmt/cmd/asmfmt
|
2020-05-14 13:04:55 +03:00
|
|
|
- diff <(asmfmt -d .) <(printf "")
|
2021-03-26 12:07:40 +03:00
|
|
|
- CGO_ENABLED=1 go test -cpu=1 -short -race .
|
|
|
|
- CGO_ENABLED=1 go test -cpu=2 -short -race .
|
|
|
|
- CGO_ENABLED=1 go test -tags=noasm -cpu=1 -short -race .
|
|
|
|
- CGO_ENABLED=1 go test -tags=noasm -cpu=4 -short -race .
|
|
|
|
- CGO_ENABLED=1 go test -no-avx512 -short -race .
|
|
|
|
- CGO_ENABLED=1 go test -no-avx512 -no-avx2 -short -race .
|
|
|
|
- CGO_ENABLED=1 go test -no-avx512 -no-avx2 -no-ssse3 -short -race .
|
|
|
|
- GOOS=linux GOARCH=386 go test -short .
|
|
|
|
- stage: other
|
2020-09-01 14:13:31 +03:00
|
|
|
go: 1.15.x
|
2020-05-09 11:35:17 +03:00
|
|
|
os: linux
|
|
|
|
arch: amd64
|
|
|
|
script:
|
|
|
|
- go test -no-avx512
|
|
|
|
- go test -no-avx512 -no-avx2
|
|
|
|
- go test -no-avx512 -no-avx2 -no-ssse3
|