-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (56 loc) · 1.81 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
language: go
jobs:
include:
- stage: "Build"
os: linux
go: 1.12.x
script: go build
- stage: "Build"
os: osx
go: 1.12.x
script: go build
- stage: "Test"
os: windows
go: 1.12.x
before_install: go get github.com/mattn/goveralls
script:
- go test . -race -coverprofile=coverage.out
- $GOPATH/bin/goveralls -coverprofile=coverage.out -service=travis-ci
- stage: "Test"
os: linux
go: 1.12.x
script: go test . -race
- stage: "Test"
os: osx
go: 1.12.x
script: go test . -race
- stage: "Build"
if: branch = master OR branch = develop OR branch =~ /release\/.*/ OR branch =~ /hotfix\/.*/ OR branch =~ /v[0-9]+[0-9.]*/
os: linux
go: 1.11.x
script: go build
- stage: "Test"
if: branch = master OR branch = develop OR branch =~ /release\/.*/ OR branch =~ /hotfix\/.*/ OR branch =~ /v[0-9]+[0-9.]*/
os: linux
go: 1.11.x
script: go test . -race
- stage: "Build"
if: branch = master OR branch = develop OR branch =~ /release\/.*/ OR branch =~ /hotfix\/.*/ OR branch =~ /v[0-9]+[0-9.]*/
os: linux
go: 1.10.x
script: go build
- stage: "Test"
if: branch = master OR branch = develop OR branch =~ /release\/.*/ OR branch =~ /hotfix\/.*/ OR branch =~ /v[0-9]+[0-9.]*/
os: linux
go: 1.10.x
script: go test . -race
- stage: "Build"
if: branch = master OR branch = develop OR branch =~ /release\/.*/ OR branch =~ /hotfix\/.*/ OR branch =~ /v[0-9]+[0-9.]*/
os: linux
go: 1.9.x
script: go build
- stage: "Test"
if: branch = master OR branch = develop OR branch =~ /release\/.*/ OR branch =~ /hotfix\/.*/ OR branch =~ /v[0-9]+[0-9.]*/
os: linux
go: 1.9.x
script: go test . -race