-
Notifications
You must be signed in to change notification settings - Fork 93
/
Copy pathMakefile
42 lines (34 loc) · 1017 Bytes
/
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
VERSION=$(shell git describe --tags)
LDFLAGS=-ldflags "-X gosip.Version=${VERSION}"
GOFLAGS=
install:
#go get -v github.com/wadey/gocovmerge
go get -v -t ./...
#go install -mod=mod github.com/onsi/ginkgo/...
test:
#ginkgo -r --trace --race --compilers=2 $(GOFLAGS)
go test -race ./...
test-%:
ginkgo -r --trace --race --compilers=2 $(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/ghettovoice/gosip \
-v ~/.ssh:/root/.ssh \
-w /go/src/github.com/ghettovoice/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