forked from checkout/checkout-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtravis.yml
40 lines (33 loc) · 951 Bytes
/
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
before_install:
# Install lint / code coverage / coveralls tooling
- travis_retry go get -u golang.org/x/net/http2
- travis_retry go get -u golang.org/x/tools/cmd/cover
- travis_retry go get -u github.com/mattn/goveralls
- travis_retry go get -u golang.org/x/lint/golint
language: go
go:
- "1.10.x"
- "1.11.x"
- "1.12.x"
- "1.13.x"
- "1.14.x"
- tip
matrix:
allow_failures:
- go: tip
fast_finish: true
script:
- |
# See note above, but Testify broke versions < 1.13, so we only build (and
# not test) on older versions. Drop this after we've dropped support for <
# 1.13.
if [[ "$TRAVIS_GO_VERSION" > "1.13" ]]; then
make
make coverage
else
make build
fi
after_script:
# Send code coverage report to coveralls.io
- goveralls -service=travis-ci -coverprofile=combined.coverprofile
sudo: false