forked from CyCoreSystems/ari
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (26 loc) · 804 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
SHELL = /usr/bin/env bash
EVENT_SPEC_FILE = internal/eventgen/json/events-2.0.0.json
all: api clients extensions
api:
go build ./
go build ./stdbus
test:
go test `go list ./... | grep -v /vendor/`
check: all
# disabling golint due to stringer output failing this check; TODO: fix this somehow
gometalinter --disable=gotype --disable=golint client/native ext/...
clients:
go build ./client/native
go build ./client/arimocks
extensions:
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 get -u github.com/vektra/mockery/.../
rm -Rf vendor/ client/arimocks
mockery -all -outpkg arimocks -output client/arimocks
glide i
ci: check