From 60e17e671ec46825cc4d7b4a6c7bdfa86c282b9e Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Fri, 26 Mar 2021 10:07:40 +0100 Subject: [PATCH] Update go116 (#164) * Update travis with Go 1.16 * Disable cgo --- .travis.yml | 44 ++++++++++++++++---------------------------- 1 file changed, 16 insertions(+), 28 deletions(-) diff --git a/.travis.yml b/.travis.yml index 51e23b1..fdd619c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,11 +12,14 @@ arch: - s390x go: - - 1.13.x - 1.14.x - 1.15.x + - 1.16.x - master +env: + - GO111MODULE=off CGO_ENABLED=0 + install: - go get ./... @@ -29,39 +32,30 @@ script: - go build examples/stream-decoder.go - go build examples/stream-encoder.go -stages: - - gofmt - - test - - deploy - jobs: allow_failures: - go: 'master' - arch: s390x fast_finish: true include: - - stage: gofmt - go: 1.15.x + - stage: other + go: 1.16.x os: linux arch: amd64 script: - diff <(gofmt -d .) <(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 "") - - stage: race - go: 1.15.x - os: linux - arch: amd64 - script: - - go test -cpu=1 -short -race . - - go test -cpu=2 -short -race . - - go test -tags=noasm -cpu=1 -short -race . - - go test -tags=noasm -cpu=4 -short -race . - - 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 + - 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 go: 1.15.x os: linux arch: amd64 @@ -69,9 +63,3 @@ jobs: - go test -no-avx512 - go test -no-avx512 -no-avx2 - 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 .