forked from klauspost/reedsolomon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (58 loc) · 1.51 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
language: go
os:
- linux
- osx
- windows
arch:
- amd64
- arm64
- ppc64le
- s390x
go:
- 1.14.x
- 1.15.x
- 1.16.x
- master
env:
- GO111MODULE=off CGO_ENABLED=0
install:
- go get ./...
script:
- go vet ./...
- go test -cpu=1,2 .
- go test -tags=noasm -cpu=1,2 .
- go build examples/simple-decoder.go
- go build examples/simple-encoder.go
- go build examples/stream-decoder.go
- go build examples/stream-encoder.go
jobs:
allow_failures:
- go: 'master'
- arch: s390x
fast_finish: true
include:
- stage: other
go: 1.16.x
os: linux
arch: amd64
script:
- diff <(gofmt -d .) <(printf "")
- diff <(gofmt -d ./examples) <(printf "")
- go get github.com/klauspost/asmfmt&&go install github.com/klauspost/asmfmt/cmd/asmfmt
- diff <(asmfmt -d .) <(printf "")
- 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
script:
- go test -no-avx512
- go test -no-avx512 -no-avx2
- go test -no-avx512 -no-avx2 -no-ssse3