forked from hyperjumptech/grule-rule-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (21 loc) · 727 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
GO111MODULE=on
.PHONY: all test test-short fix-antlr4-bug build
fix-antlr4-bug:
sed -i.origin.bak "s/1[ ]*<</int64(1) <</g" antlr/parser/grulev3/grulev3_parser.go
build: fix-antlr4-bug
export GO111MODULE on; \
go build ./...
lint: build
ifndef GOBIN
"${GOPATH}/bin/golint" -set_exit_status builder/... engine/... examples/... ast/... pkg/... antlr/. model/...
else
"${GOBIN}/golint" -set_exit_status builder/... engine/... examples/... ast/... pkg/... antlr/. model/...
endif
test-short: build
go test ./... -v -covermode=count -coverprofile=coverage.out -short
test: build
go test ./... -covermode=count -coverprofile=coverage.out
test-coverage: test
go tool cover -html=coverage.out
mocks:
go generate ./...