-
Notifications
You must be signed in to change notification settings - Fork 486
/
Copy path.travis.yml
86 lines (81 loc) · 1.92 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
language: go
branches:
only:
- master
- /^crl-release-\d+\.\d+$/
install:
- go get -v golang.org/x/lint/golint
cache:
directories:
- $(go env GOCACHE)
- $(go env GOPATH)/pkg/mod
matrix:
include:
- name: "go1.14.x-linux"
go: 1.14.x
os: linux
script: make test
- name: "go1.15.x-linux"
go: 1.15.x
os: linux
script: make test generate
- name: "go1.15.x-linux-race"
go: 1.15.x
os: linux
script: make testrace TAGS=
- name: "go1.15.x-linux-no-invariants"
go: 1.15.x
os: linux
script: make test TAGS=
- name: "go1.15.x-linux-no-cgo"
go: 1.15.x
os: linux
script: CGO_ENABLED=0 make test TAGS=
- name: "go1.15.x-darwin"
go: 1.15.x
os: osx
script: make test
- name: "go1.15.x-windows"
go: 1.15.x
os: windows
script: go test ./...
- name: "go1.15.x-freebsd"
go: 1.15.x
os: linux
# NB: "env: GOOS=freebsd" does not have the desired effect.
script: GOOS=freebsd go build -v ./...
- name: "go1.16.x-linux"
go: 1.16.x
os: linux
script: make test generate
- name: "go1.16.x-linux-race"
go: 1.16.x
os: linux
script: make testrace TAGS=
- name: "go1.16.x-linux-no-invariants"
go: 1.16.x
os: linux
script: make test TAGS=
- name: "go1.16.x-linux-no-cgo"
go: 1.16.x
os: linux
script: CGO_ENABLED=0 make test TAGS=
- name: "go1.16.x-darwin"
go: 1.16.x
os: osx
script: make test
- name: "go1.16.x-windows"
go: 1.16.x
os: windows
script: go test ./...
- name: "go1.16.x-freebsd"
go: 1.16.x
os: linux
# NB: "env: GOOS=freebsd" does not have the desired effect.
script: GOOS=freebsd go build -v ./...
notifications:
email:
recipients:
on_success: never
on_failure: always