-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
32 lines (24 loc) · 871 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
WORKSPACE ?= $$(pwd)
GO_PKG_LIST := $(shell go list ./client/pkg/... ./discovery/... ./traceability/...)
dep:
@$(MAKE) -C client dep
@$(MAKE) -C discovery dep
@$(MAKE) -C traceability dep
dep-branch:
@$(MAKE) -C client dep-branch
@$(MAKE) -C discovery dep-branch
@$(MAKE) -C traceability dep-branch
dep-version:
@$(MAKE) -C client dep-version sdk=$(sdk)
@$(MAKE) -C discovery dep-version sdk=$(sdk)
@$(MAKE) -C traceability dep-version sdk=$(sdk)
dep-sdk:
@$(MAKE) -C client dep-sdk
@$(MAKE) -C discovery dep-sdk
@$(MAKE) -C traceability dep-sdk
test-sonar:
@go vet ${GO_PKG_LIST}
@go test -v -short -coverpkg=./... -coverprofile=${WORKSPACE}/gocoverage.out -count=1 ${GO_PKG_LIST} -json > ./goreport.json
test: dep
@go vet ${GO_PKG_LIST}
@go test -race -v -short -coverpkg=./... -coverprofile=${WORKSPACE}/gocoverage.out -count=1 ${GO_PKG_LIST}