forked from gammazero/nexus
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
45 lines (37 loc) · 1.15 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
SERVICE_DIR = nexusd
.PHONY: all vet test service clean
all: vet test service
vet:
go vet -all -composites=false -shadow=true ./...
test:
go get github.com/fortytw2/leaktest
go get github.com/davecgh/go-spew/spew
go build ./examples/...
go test -race ./wamp/...
go test -race ./transport/...
go test -race ./router/...
go test -race ./client/...
go test -race ./aat/...
go test -race ./aat -scheme=ws
go test -race ./aat -scheme=unix
go test ./aat -scheme=ws -serialize=msgpack
go test ./aat -scheme=tcp -serialize=msgpack
go test ./aat -scheme=ws -serialize=cbor
go test ./aat -scheme=tcp -serialize=cbor
go test ./aat -scheme=wss
go test ./aat -scheme=tcps
benchmark:
go test ./aat -run=XXX -bench=.
go test ./aat -run=XXX -bench=. -scheme=ws
go test ./aat -run=XXX -bench=. -scheme=wss
go test ./aat -run=XXX -bench=. -scheme=tcp
go test ./aat -run=XXX -bench=. -scheme=tcps
go test ./aat -run=XXX -bench=. -scheme=ws -compress
service: $(SERVICE_DIR)/nexusd
$(SERVICE_DIR)/nexusd:
@cd $(SERVICE_DIR); go build
@echo "===> built $(SERVICE_DIR)/nexusd"
clean:
@rm -f $(SERVICE_DIR)/nexusd
@rm -f $(SERVICE_DIR)/*.log
@GO111MODULE=off go clean