-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (16 loc) · 760 Bytes
/
Makefile
File metadata and controls
21 lines (16 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
PACKAGES=$(shell go list ./...)
PACKAGES_UNITTEST=$(shell go list ./... | grep -v integration_test)
export GO111MODULE = on
format:
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "*.pb.go" | xargs gofmt -w -s
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "*.pb.go" | xargs misspell -w
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "*.pb.go" | xargs goimports -w -local github.com/irisnet/service-sdk-go
test-unit:
@go test -v $(PACKAGES_UNITTEST)
test-integration:
cd integration_test/scripts/ && sh build.sh && sh start.sh
sleep 2s
@go test -v $(PACKAGES)
cd integration_test/scripts/ && sh clean.sh
proto-gen:
@./third_party/protocgen.sh