-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
26 lines (26 loc) · 1.22 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
language: go
arch:
- amd64
os:
- linux
go:
- 1.16.x
- 1.17.x
env:
matrix:
- GO111MODULE=on
global:
secure: lp7m6jKqA4WlaDPrMk0h1Fk+gYtRrt+6rMeoZkgIqKskflTYxGbnGzgzC5r6xl5U3zfMs1Zf9DF04scD66JJ4Sar4x5cr3L+h/f8cuk/ez24jMP7hv2i9/KCNgX7M/mVlo5l5xomewRsZ0VxL+zV6rT57P9kOJDB4G6Fd2HUCbuG2jMqmeF0U68Qua0NLUijEpRhoh2Lch4S14gVwAd34C5jyUpnbYPB3ZG9ScA7MeOrjmVIa+dPGa/xX6JrykZ76HOE8lrcGJU1BXHtsNnMmXM94VjoVDJKVs19WQ5ibJpBS6amc4Oi7qhUV7xhwviGbWavYRgpiBTGeKuMYUumLOvQy0QcZ0B4OueMUeUWVno9sYAiqwJ+ZPdPbn5/XqsXV4HRbBEI0/cAYjNQY6FHXQVJqoL3mvPkmrzPv8GtHrEA0569+IfYty9Pnc7m52AlTZPi0J5WRav7n40st4HEmQ8hrk3K0FqfiSpx1IAzGocxQ6N0EI3lcbrYTYE2ZUCwEOLsv3HYk4vtzT/Cm8btek5yCgXsI8Vph3+Ab4vROF12FRxYvnVfdIwHClLN2BzcZ8MDZklsBAHPjxv1K5MPAhDQ9SJClDP05rBZ3KruG32RAVrwx3gNhbp8ER9r3hnb/PFeVBYKYp/o/5nL+Ykd3OhO6n8GbSfEQs+lbgWiabY=
branches:
only:
- master
script:
- go mod tidy && git diff --exit-code go.mod go.sum
- go generate
- rm -f coverage.out coverage.html
- go test -v ./... gcflags=all=-l
- go get golang.org/x/tools/cmd/cover
- go get github.com/mattn/goveralls
- go test ${gobuild_args} -v ./... -covermode=count -coverprofile=coverage.out gcflags=all=-l
- echo $COVERALLS_TOKEN
- goveralls -coverprofile=coverage.out -service=travis-pro -repotoken $COVERALLS_TOKEN