-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
30 lines (30 loc) · 1.58 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
language: go
sudo: false
go:
- '1.10'
- tip
matrix:
allow_failures:
- go: tip
install:
- go get golang.org/x/tools/cmd/cover
- go get github.com/modocache/gover
- go get github.com/mattn/goveralls
- go get honnef.co/go/tools/cmd/gosimple
- go get honnef.co/go/tools/cmd/unused
- go get honnef.co/go/tools/cmd/staticcheck
- go get -v -t ./...
script:
- go vet $(go list ./... | grep -v /vendor/)
- unused $(go list ./... | grep -v /vendor/)
- gosimple $(go list ./... | grep -v /vendor/)
- staticcheck $(go list ./... | grep -v /vendor/)
- "echo 'mode: atomic' > go-bitflyer.coverprofile"
- "go list ./... | xargs -n1 -I{} sh -c 'go test -covermode=atomic -coverprofile=coverage.tmp {} && tail -n +2 coverage.tmp >> go-bitflyer.coverprofile'"
- rm coverage.tmp
after_script:
- gover
- goveralls -coverprofile=go-bitflyer.coverprofile -repotoken $COVERALLS_TOKEN
env:
global:
secure: bcYf+DVjcxT86K39Y9Eq+/9bv/PmVh+ZdteX5KeM/MdAaDAHi6SVw0ktY+kxGLYRHqJwmQ1x4++QGSzry+1BXk5DMHB6Htq6rDjM3axMyG5/zkFjcIUiqOwMvS25bw7VzsmF+AC1fPPn80inq2SOn4ugSfQv9cwonGx3jrXKq+DuMaYhQid64rXbIpDDUcDTMoKDl44CFKlqShDRyjrxJa9jmDlm6ygBXya2SULyFPvS4NMnkvm7HIM2BkNpZ7aZ2WKVXRqUS09vFr6SmEBpGIPmF/pCx6h94jj8Btpn/7BDAWPp8mNsJauZcxmWYiqZM2UbDjrbkERSj3Vk9DK8l8FqugodIFCgBVulMehG/CiQBdAxbxFjJDfmjsARE6w7jE+InBLjQbqYEVKYLlA9Eo3s6QPk0h/gfuMciCzupMGdwjmpkvkzFT+ZERzPZPzhg8EaLdSvay0E06pp0UryKrnoVY981ArYFlbEGRgCMUI9I68/WeE55KRwRQpWLFjmdoRzE7WocJUqijILU8YYP7okGV8LebpVx3rwmVCrq0TqjZ1ho6zVEtfKWTu+DSU36oyRuf4CEPOLpDuebNOFGMeYne6K+VxeOzwzhBZ9HFCiPvDzCoTd+VDFJ/YGARFRBzzPjmq9UVlhKTcaRjYuvyO38CiMb1iHF8SdUEa75s0=