forked from sreeram-narayanan/gosip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (36 loc) · 1.14 KB
/
Makefile
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
41
42
43
44
45
VERSION=$(shell git describe --tags)
LDFLAGS=-ldflags "-X gosip.Version=${VERSION}"
GOFLAGS=
install: .install-utils
go get -v -t ./...
go mod tidy
.install-utils:
go get -v github.com/wadey/gocovmerge
go get -v github.com/onsi/ginkgo/...
go get -v github.com/onsi/gomega/...
test:
ginkgo -r --randomizeAllSpecs --randomizeSuites --cover --trace --race --compilers=2 --progress $(GOFLAGS)
test-%:
ginkgo -r --randomizeAllSpecs --randomizeSuites --cover --trace --race --compilers=2 --progress $(GOFLAGS) ./$*
test-watch:
ginkgo watch -r --trace --race $(GOFLAGS)
test-watch-%:
ginkgo watch -r --trace --race $(GOFLAGS) ./$*
test-linux:
docker run -it --rm \
-v `pwd`:/go/src/github.com/skit-ai/gosip \
-v ~/.ssh:/root/.ssh \
-w /go/src/github.com/skit-ai/gosip \
golang:latest \
make install && make test
cover-report: cover-merge
go tool cover -html=./gosip.full.coverprofile
cover-merge:
gocovmerge \
./gosip.coverprofile \
./sip/sip.coverprofile \
./sip/parser/parser.coverprofile \
./timing/timing.coverprofile \
./transaction/transaction.coverprofile \
./transport/transport.coverprofile \
> ./gosip.full.coverprofile