mirror of
https://github.com/kovetskiy/mark.git
synced 2025-06-02 03:32:42 +08:00
Makefile: Add test target
This commit is contained in:
parent
7eb7ccc68e
commit
721dd1b642
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@
|
|||||||
/testdata
|
/testdata
|
||||||
.idea/
|
.idea/
|
||||||
/mark.test
|
/mark.test
|
||||||
|
/profile.cov
|
||||||
|
3
Makefile
3
Makefile
@ -18,6 +18,9 @@ build:
|
|||||||
-ldflags "-X main.version=$(VERSION)" \
|
-ldflags "-X main.version=$(VERSION)" \
|
||||||
-gcflags "-trimpath $(GOPATH)/src"
|
-gcflags "-trimpath $(GOPATH)/src"
|
||||||
|
|
||||||
|
test:
|
||||||
|
go test -race -coverprofile=profile.cov ./...
|
||||||
|
|
||||||
image:
|
image:
|
||||||
@echo :: building image $(NAME):$(VERSION)
|
@echo :: building image $(NAME):$(VERSION)
|
||||||
@docker build -t $(NAME):$(VERSION) -f Dockerfile .
|
@docker build -t $(NAME):$(VERSION) -f Dockerfile .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user