File: Makefile

package info (click to toggle)
golang-github-expediadotcom-haystack-client-go 0.2.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 228 kB
  • sloc: sh: 117; makefile: 34
file content (31 lines) | stat: -rw-r--r-- 825 bytes parent folder | download | duplicates (2)
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
.PHONY: codegen
codegen: idl-submodule
	go get -u github.com/golang/protobuf/protoc-gen-go	
	cp haystack-idl/proto/agent/spanAgent.proto haystack-idl/proto/.
	protoc -I haystack-idl/proto/  --go_out=plugins=grpc:. haystack-idl/proto/span.proto	
	protoc -I haystack-idl/proto/  --go_out=plugins=grpc:. haystack-idl/proto/spanAgent.proto
	rm 	haystack-idl/proto/spanAgent.proto

idl-submodule:
	git submodule init
	git submodule update

.PHONY: test
test: codegen
	go test -run TestUnit*

.PHONY: integration_test
integration_test:
	docker-compose -f docker-compose.yaml -p sandbox up -d
	sleep 30
	go test -run TestIntegration*
	docker-compose -f docker-compose.yaml -p sandbox stop

.PHONY: glide
glide:
	glide --version || go get github.com/Masterminds/glide
	glide update

.PHONY: validate
validate:
	./scripts/validate-go