-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
33 lines (32 loc) · 1.64 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
language: go
env:
global:
secure: nFo5PKhCY2IQC1yqnPeR1v6I7y1H0kK1tWh8P15HUm3hNTcClqgLyTLLmoe8GNhuuDH8PJiPs+vZ1DYCagozbp6xTtKKDPEzbW1IQJgtijF//JmeSM2uqzXVXEll6U4DQp0sYxIMW5lSfbf2BJiakLpntHCBvkWWJultreD2IH6VO8bdetOgrIvcVehk5KIgT5y2NiaUBM/u2PXCg5KY1VSxCCkEdjUp+0ygt8SYtr4oludlag6JG054abn2G9Pu7DRL1JtYBiuMou4M+NcMBoLHWbFjs0MVoK0wKvQOdbXrl1Dc7trOOMgg1UmoZvXc+PHDX8N61HZqg6IXk3DpAGiGyxpOAeoZIkT5TBwiatlAsp4rR8paK6skuT1Uhf6wxGoQc0idO2Ejqa2xu1DI9XZmoDu0INwPn0DdLCS9SaiT5vQgr99Kcq+7ntlxFTBOmk5BmWLAl/9nghC0pHcY/vrc2BQj2psiw5kIXQPQqkMHwwcdY+dfWFQEXS0RMAp7O/qfDOrj0+J+mKMt1dKw/VVAzer8WBUZwRPupJzxvbAUzIeVG/h7vLKoTJDRuUo5KTABs6eQH91lw3yuJ81tHNeH1q7SVnTOw2pnwHOr/iYQg+HBgjiV0Zpk73coeoSviipQ6ex2lzUFG2+1ffTF9FSQaJDm6F7N+5rAWqUuPis=
matrix:
allow_failures:
- go: tip
fast_finish: true
include:
- go: 1.4
- go: 1.5
- go: 1.6
- go: 1.7
- go: 1.8
- go: 1.9
env: FMT_AND_VET=1
- go: tip
before_script:
- test "$FMT_AND_VET" != 1 || go get "golang.org/x/tools/cmd/cover"
- test "$FMT_AND_VET" != 1 || go install "golang.org/x/tools/cmd/cover"
- test "$FMT_AND_VET" != 1 || go get github.com/mattn/goveralls
- test "$FMT_AND_VET" != 1 || go install github.com/mattn/goveralls
- test "$FMT_AND_VET" != 1 || sudo -E $(which go) install -a -race std
script:
- test "$FMT_AND_VET" != 1 || test -z "$(gofmt -l . | tee /dev/stderr)"
- test "$FMT_AND_VET" != 1 || go vet .
- go test -v
- test "$FMT_AND_VET" != 1 || go test -covermode=count -coverprofile=/tmp/coverage.out
- test "$FMT_AND_VET" != 1 || go test -v -race .
after_script:
- test "$FMT_AND_VET" != 1 || $HOME/gopath/bin/goveralls -coverprofile=/tmp/coverage.out
-service=travis-ci -repotoken=$COVERALLS_TOKEN