-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
36 lines (27 loc) · 824 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
all: proto build
proto:
# protoc -I api/ api/api.proto --go_out=plugins=grpc:api
# protoc -I streamer/ --gofast_out=streamer streamer/frame.proto
protoc -I streamer/ --gogofaster_out=streamer streamer/frame.proto
# protoc -I streamer/ --js_out=import_style=commonjs,binary:streamer streamer/frame.proto
build:
go build -o sharef
install:
go install
test:
go test ./streamer/...
integrationtests:
# cd itests/
# go test -timeout 60s --tags integration ./itests/... -v
cd itests/ && go test -timeout 60s --tags integration -v -cover
release_linux:
env GOOS=linux GOARCH=amd64 go build -o sharef
strip sharef
upx sharef
#mv sharef release/linux/
release_windows:
env GOOS=windows GOARCH=amd64 go build -o sharef
strip sharef
upx sharef
# mv sharef release/windows/sharef.exe
release: release_linux