-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
78 lines (62 loc) · 1.24 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
language: go
os: linux
dist: bionic
stages:
- smoke test
- name: test
if: branch = master
_smoke: &smoke
stage: smoke test
_test: &test
stage: test
install:
- go get -v github.com/golang/dep/cmd/dep
- dep ensure
script: make test
_test2: &test2
stage: test
script: make test
jobs:
include:
- name: "lint"
<< : *smoke
go: "1.13"
install:
- go get -v golang.org/x/lint/golint
script: make lint
- name: "sec"
<< : *smoke
go: "1.13"
install:
- go get -v github.com/securego/gosec/cmd/gosec
script: make sec
- name: "vet"
<< : *smoke
go: "1.13"
script: make vet
- name: "test_1.8"
<< : *test
go: "1.8"
- name: "test_1.9"
<< : *test
go: "1.9"
- name: "test_1.10"
<< : *test
go: "1.10"
- name: "test_1.11"
<< : *test
go: "1.11"
- name: "test_1.12"
<< : *test2
go: "1.12"
install:
- GO111MODULE=on go mod vendor
- name: "test_1.13"
<< : *test2
go: "1.13"
- name: "coverage"
<< : *test2
go: "1.13"
script:
- make coverage
- bash <(curl -s https://codecov.io/bash)