forked from xiaonanln/goworld
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (46 loc) · 1.42 KB
/
Makefile
File metadata and controls
57 lines (46 loc) · 1.42 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
.PHONY: dispatcher test_game test_client gate chatroom_demo
.PHONY: runtestserver killtestserver test covertest install-deps
all: dispatcher test_game test_client gate chatroom_demo
dispatcher:
cd components/dispatcher && go build
gate:
cd components/gate && go build
test_game:
cd examples/test_game && go build
test_client:
cd examples/test_client && go build
chatroom_demo:
cd examples/chatroom_demo && go build
runtestserver: dispatcher gate test_game
components/dispatcher/dispatcher &
examples/test_game/test_game -gid=1 -log info &
examples/test_game/test_game -gid=2 -log info &
components/gate/gate -gid 1 -log debug &
components/gate/gate -gid 2 -log debug &
killtestserver:
- killall gate
- sleep 3
- killall test_game
- sleep 5
- killall dispatcher
test:
go test ./...
covertest:
go test -covermode=count ./...
install-deps:
- pip install psutil
- go get golang.org/x/net/context
- go get golang.org/x/net/websocket
- go get github.com/xiaonanln/go-xnsyncutil/xnsyncutil
- go get github.com/xiaonanln/goTimer
- go get github.com/xiaonanln/typeconv
- go get github.com/Sirupsen/logrus
- go get github.com/garyburd/redigo/redis
- go get github.com/google/btree
- go get github.com/pkg/errors
- go get github.com/bmizerany/assert
- go get gopkg.in/eapache/queue.v1
- go get gopkg.in/ini.v1
- go get gopkg.in/mgo.v2
- go get gopkg.in/vmihailenco/msgpack.v2
- go get gopkg.in/natefinch/lumberjack.v2