-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
44 lines (31 loc) · 1.32 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
.PHONY: dependencies generategrpc management checks test dispatcher handler frontapi ioncli example-modules
all: dependencies generategrpc checks test dispatcher handler frontapi management ioncli example-modules
dependencies:
dep ensure -v --vendor-only
test:
go test -short ./...
integration:
go test ./...
ioncli:
make -f build/ion/Makefile.Docker
dispatcher:
make -f build/dispatcher/Makefile.Docker
handler:
make -f build/handler/Makefile.Docker
generategrpc:
cd ./internal/pkg/management/module && rm -f *.pb.go && protoc -I . module.proto --go_out=plugins=grpc:. && cd -
cd ./internal/pkg/management/trace && rm -f *.pb.go && protoc -I . trace.proto --go_out=plugins=grpc:. && cd -
management:
make -f build/management/Makefile.Docker
frontapi:
make -f build/frontapi/Makefile.Docker
example-modules:
make -f modules/transcode/Makefile.Docker
make -f modules/example/Makefile.Docker
make -f modules/downloadfile/Makefile.Docker
check-tf:
terraform init ./deployment && terraform validate -var-file=./deployment/vars.example.tfvars ./deployment/
checks:
gometalinter --vendor --disable-all --enable=errcheck --enable=vet --enable=gofmt --enable=golint --enable=deadcode --enable=varcheck --enable=structcheck --deadline=15m ./...
plan-tf:
terraform plan -var-file=./deployment/vars.example.tfvars ./deployment