Update go116 (#164)

* Update travis with Go 1.16
* Disable cgo
master
Klaus Post 2021-03-26 10:07:40 +01:00 committed by GitHub
parent 195d6fc1ad
commit 60e17e671e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 28 deletions

View File

@ -12,11 +12,14 @@ arch:
- s390x - s390x
go: go:
- 1.13.x
- 1.14.x - 1.14.x
- 1.15.x - 1.15.x
- 1.16.x
- master - master
env:
- GO111MODULE=off CGO_ENABLED=0
install: install:
- go get ./... - go get ./...
@ -29,39 +32,30 @@ script:
- go build examples/stream-decoder.go - go build examples/stream-decoder.go
- go build examples/stream-encoder.go - go build examples/stream-encoder.go
stages:
- gofmt
- test
- deploy
jobs: jobs:
allow_failures: allow_failures:
- go: 'master' - go: 'master'
- arch: s390x - arch: s390x
fast_finish: true fast_finish: true
include: include:
- stage: gofmt - stage: other
go: 1.15.x go: 1.16.x
os: linux os: linux
arch: amd64 arch: amd64
script: script:
- diff <(gofmt -d .) <(printf "") - diff <(gofmt -d .) <(printf "")
- diff <(gofmt -d ./examples) <(printf "") - diff <(gofmt -d ./examples) <(printf "")
- go install github.com/klauspost/asmfmt/cmd/asmfmt - go get github.com/klauspost/asmfmt&&go install github.com/klauspost/asmfmt/cmd/asmfmt
- diff <(asmfmt -d .) <(printf "") - diff <(asmfmt -d .) <(printf "")
- stage: race - CGO_ENABLED=1 go test -cpu=1 -short -race .
go: 1.15.x - CGO_ENABLED=1 go test -cpu=2 -short -race .
os: linux - CGO_ENABLED=1 go test -tags=noasm -cpu=1 -short -race .
arch: amd64 - CGO_ENABLED=1 go test -tags=noasm -cpu=4 -short -race .
script: - CGO_ENABLED=1 go test -no-avx512 -short -race .
- go test -cpu=1 -short -race . - CGO_ENABLED=1 go test -no-avx512 -no-avx2 -short -race .
- go test -cpu=2 -short -race . - CGO_ENABLED=1 go test -no-avx512 -no-avx2 -no-ssse3 -short -race .
- go test -tags=noasm -cpu=1 -short -race . - GOOS=linux GOARCH=386 go test -short .
- go test -tags=noasm -cpu=4 -short -race . - stage: other
- go test -no-avx512 -short -race .
- go test -no-avx512 -no-avx2 -short -race .
- go test -no-avx512 -no-avx2 -no-ssse3 -short -race .
- stage: amd64-noasm
go: 1.15.x go: 1.15.x
os: linux os: linux
arch: amd64 arch: amd64
@ -69,9 +63,3 @@ jobs:
- go test -no-avx512 - go test -no-avx512
- go test -no-avx512 -no-avx2 - go test -no-avx512 -no-avx2
- go test -no-avx512 -no-avx2 -no-ssse3 - go test -no-avx512 -no-avx2 -no-ssse3
- stage: i386
go: 1.15.x
os: linux
arch: amd64
script:
- GOOS=linux GOARCH=386 go test -short .