-
Notifications
You must be signed in to change notification settings - Fork 73
/
Makefile
52 lines (37 loc) · 1.11 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
GO111MODULE = on
SHELL = /usr/bin/env bash
EVENT_SPEC_FILE = internal/eventgen/json/events-2.0.0.json
all: dep check api clients contributors extensions test
ci: check api clients extensions test
contributors:
write_mailmap > CONTRIBUTORS
protobuf: ari.proto
protoc -I. -I./vendor -I$(GOPATH)/src --gogofast_out=Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types,plugins=grpc:. ari.proto
dep:
go mod tidy
api:
go build ./
go build ./stdbus
go build ./rid
test:
go test `go list ./... | grep -v /vendor/`
check:
go mod verify
golangci-lint run
#gometalinter --disable=gotype client/native ext/...
clients:
go build ./client/native
go build ./client/arimocks
extensions:
go build ./ext/audiouri
go build ./ext/bridgemon
go build ./ext/keyfilter
go build ./ext/play
go build ./ext/record
events:
go build -o bin/eventgen ./internal/eventgen/...
@./bin/eventgen internal/eventgen/template.tmpl ${EVENT_SPEC_FILE} |goimports > events_gen.go
mock:
go install github.com/vektra/mockery/cmd/mockery
rm -Rf vendor/ client/arimocks
mockery --name . --outpkg arimocks --output client/arimocks