forked from klauspost/cpuid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (58 loc) · 1.34 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
language: go
os:
- linux
- osx
- windows
arch:
- amd64
- arm64
go:
- 1.13.x
- 1.14.x
- 1.15.x
- master
script:
- go vet ./...
- go test -test.v -test.run ^TestCPUID$
- go test -race ./...
- go test -tags=noasm ./...
matrix:
allow_failures:
- go: 'master'
fast_finish: true
include:
- stage: gofmt
go: 1.15.x
os: linux
arch: amd64
script:
- diff <(gofmt -d .) <(printf "")
- diff <(gofmt -d ./private) <(printf "")
- go install github.com/klauspost/asmfmt/cmd/asmfmt
- diff <(asmfmt -d .) <(printf "")
- stage: i386
go: 1.15.x
os: linux
arch: amd64
script:
- GOOS=linux GOARCH=386 go test .
- stage: buildotherprev
go: 1.14.x
os: linux
arch: amd64
script:
- GOOS=darwin GOARCH=arm64 go build .
- GOOS=freebsd GOARCH=arm64 go build .
- GOOS=netbsd GOARCH=arm64 go build .
- GOOS=freebsd GOARCH=amd64 go build .
- GOOS=netbsd GOARCH=amd64 go build .
- stage: buildother
go: 1.15.x
os: linux
arch: amd64
script:
- GOOS=darwin GOARCH=arm64 go build .
- GOOS=freebsd GOARCH=arm64 go build .
- GOOS=netbsd GOARCH=arm64 go build .
- GOOS=freebsd GOARCH=amd64 go build .
- GOOS=netbsd GOARCH=amd64 go build .