-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
94 lines (71 loc) · 2.26 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
.PHONY: build
build: lint build-video build-user build-streaming-server build-thumbgenerator build-videoprocessor build-video-scaler build-notifier
.PHONY: lint
lint:
golangci-lint run
.PHONY: build-api-gateway
build-api-gateway:
go build -o .\bin\web-api-gateway\web-gateway.exe .\cmd\web-api-gateway\main.go
.PHONY: build-videos
build-videos:
go build -o .\bin\videoserver\videoserver.exe .\cmd\videoserver\main.go
.PHONY: build-user
build-user:
go build -o .\bin\user\userserver.exe .\cmd\user\main.go
.PHONY: build-streaming-server
build-streaming-server:
go build -o .\bin\streaming-server\streamingserver.exe .\cmd\streaming-server\main.go
.PHONY: build-thumbgenerator
build-thumbgenerator:
go build -o .\bin\thumbgenerator\thumbgenerator.exe .\cmd\thumbgenerator\main.go
.PHONY: build-videoprocessor
build-videoprocessor:
go build -o .\bin\videoprocessor\videoprocessor.exe .\cmd\videoprocessor\main.go
.PHONY: build-video-comments
build-video-comments:
go build -o .\bin\video-comments\comments.exe .\cmd\video-comments\main.go
.PHONY: build-notifier
build-notifier:
go build -o .\bin\notifier\notifier.exe .\cmd\notifier\main.go
.PHONY: build-video-scaler
build-video-scaler:
xcopy /f .\cmd\video-scaler\scale.bat .\bin\video-scaler\scale.bat /Y
xcopy /f .\cmd\video-scaler\resolution.bat .\bin\video-scaler\resolution.bat /Y
go build -o .\bin\video-scaler\video-scaler.exe .\cmd\video-scaler\main.go
.PHONY: run
run: run.bat
.PHONY: run-api-gateway
run-api-gateway:
.\bin\web-api-gateway\web-gateway.exe
.PHONY: run-videoserver
run-videoserver:
.\bin\videoserver\videoserver.exe
.PHONY: run-user
run-user:
.\bin\user\userserver.exe
.PHONY: run-streaming-server
run-streaming-server:
.\bin\streaming-server\streamingserver.exe
.PHONY: run-video-comments
run-video-comments:
.\bin\comments\video-comments.exe
.PHONY: run-thumbgenerator
run-thumbgenerator:
.\bin\thumbgenerator\thumbgenerator.exe
.PHONY: run-video-scaler
run-video-scaler:
.\bin\video-scaler\video-scaler.exe
.PHONY: run-notifier
run-notifier:
.\bin\notifier\notifier.exe
.PHONY: run-web
run-web:
cd ./web/ && start npm run serve && cd ../
.PHONY: stop
stop:
stop.bat
test:
go test --short -coverprofile=cover.out -v ./...
make test.coverage
test.coverage:
go tool cover -func=cover.out