-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
28 lines (24 loc) · 1.4 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
language: go
go:
- 1.10.x
before_install:
- go get github.com/onsi/gomega
- go get github.com/onsi/ginkgo/ginkgo
- go get github.com/golang/dep/cmd/dep
- go get golang.org/x/lint/golint
- go get github.com/loongy/covermerge
- go get github.com/mattn/goveralls
# - dep ensure
script:
# - go vet ./...
# - golint -set_exit_status `go list ./... | grep -Ev "(stackint/asm|vendor)"`
# - golint `go list ./... | grep -Ev "(stackint/asm|vendor)"`
- ginkgo --race --cover --coverprofile coverprofile.out ./...
- covermerge crypto/coverprofile.out dispatch/coverprofile.out grpc/coverprofile.out http/coverprofile.out http/adapter/coverprofile.out identity/coverprofile.out leveldb/coverprofile.out logger/coverprofile.out ome/coverprofile.out order/coverprofile.out orderbook/coverprofile.out shamir/coverprofile.out smpc/coverprofile.out stackint/coverprofile.out stream/coverprofile.out swarm/coverprofile.out > coverprofile.out
- sed -i '/.pb.go/d' coverprofile.out # autogenerated files
- sed -i '/bindings/d' coverprofile.out # autogenerated files
- sed -i '/cmd/d' coverprofile.out # command-line files
- sed -i '/contract/d' coverprofile.out # blockchain testing needs to be disabled in CI
- sed -i '/testutils/d' coverprofile.out # testutils are implicitly tested in other files
after_success:
- goveralls -coverprofile=coverprofile.out -service=travis-ci -repotoken $COVERALLS_TOKEN