-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (40 loc) · 1.24 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
46
47
48
49
50
51
52
53
54
.PHONY: install
install:
go install github.com/osspkg/devtool@latest
.PHONY: setup
setup:
devtool setup-lib
.PHONY: lint
lint:
devtool lint
.PHONY: license
license:
devtool license
.PHONY: build
build:
devtool build --arch=amd64
.PHONY: tests
tests:
devtool test
.PHONY: pre-commite
pre-commite: setup lint build tests
.PHONY: ci
ci: install setup lint build tests
run_example_client_tcp:
ADDRESS="127.0.0.1:8888" NETWORK="tcp" go run -race examples/client/main.go
run_example_server_tcp:
ADDRESS="127.0.0.1:8888" NETWORK="tcp" go run -race examples/server/main.go
run_example_client_udp:
ADDRESS="127.0.0.1:8888" NETWORK="udp" go run -race examples/client/main.go
run_example_server_udp:
ADDRESS="127.0.0.1:8888" NETWORK="udp" go run -race examples/server/main.go
run_example_client_unix:
ADDRESS="/tmp/unix.sock" NETWORK="unix" go run -race examples/client/main.go
run_example_server_unix:
ADDRESS="/tmp/unix.sock" NETWORK="unix" go run -race examples/server/main.go
run_example_client_quic:
ADDRESS="127.0.0.1:8888" NETWORK="quic" go run -race examples/client/main.go
run_example_server_quic:
ADDRESS="127.0.0.1:8888" NETWORK="quic" go run -race examples/server/main.go
run_example_server_epoll:
go run -race examples/epoll-server/main.go