fix docs builds for helloworld and streams

This commit is contained in:
Asim Aslam
2021-03-18 10:56:42 +00:00
parent d3dc05e96a
commit bad4ee14ed
2 changed files with 8 additions and 3 deletions

View File

@@ -4,12 +4,12 @@ GOPATH:=$(shell go env GOPATH)
.PHONY: proto
proto:
protoc --openapi_out=. --proto_path=${GOPATH}/src:. --micro_out=. --go_out=. proto/helloworld/helloworld.proto
protoc --openapi_out=. --proto_path=${GOPATH}/src:. --micro_out=. --go_out=. proto/helloworld.proto
.PHONY: docs
docs:
protoc --openapi_out=. --proto_path=${GOPATH}/src:. --micro_out=. --go_out=. proto/helloworld/helloworld.proto
@redoc-cli bundle api-protobuf.json
protoc --openapi_out=. --proto_path=${GOPATH}/src:. --micro_out=. --go_out=. proto/helloworld.proto
@redoc-cli bundle api-helloworld.json
.PHONY: build
build: proto

View File

@@ -13,6 +13,11 @@ proto:
build:
go build -o streams *.go
.PHONY: docs
docs:
protoc --openapi_out=. --proto_path=. --micro_out=. --go_out=:. proto/streams.proto
@redoc-cli bundle api-streams.json
.PHONY: test
test:
go test -v ./... -cover