forked from googleapis/gapic-generator-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (27 loc) · 945 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
.PHONY : check-license test
image:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build github.com/googleapis/gapic-generator-go/cmd/protoc-gen-go_gapic
docker build -t gcr.io/gapic-images/gapic-generator-go .
rm protoc-gen-go_gapic
check-license:
find -name '*.go' -not -name '*.pb.go' | xargs go run utils/license.go --
test-go-cli:
go test github.com/googleapis/gapic-generator-go/internal/gencli
./cmd/protoc-gen-go_cli/test.sh
test-gapic:
go test github.com/googleapis/gapic-generator-go/internal/gengapic
golden:
go test github.com/googleapis/gapic-generator-go/internal/gengapic -update_golden
test:
go test ./...
./utils/showcase.bash
install:
go install ./cmd/protoc-gen-go_gapic
go install ./cmd/protoc-gen-go_cli
clean:
rm -rf testdata
rm -rf cmd/protoc-gen-go_cli/testprotos
rm -rf cmd/protoc-gen-go_cli/testdata
rm -rf showcase/gen
rm -f showcase/gapic-showcase
rm -f showcase/showcase_grpc_service_config.json