mirror of
https://github.com/rjNemo/underscore
synced 2026-06-06 02:26:42 +00:00
chore: better Makefile
This commit is contained in:
parent
2f17af7b5d
commit
290698569f
1 changed files with 7 additions and 2 deletions
9
Makefile
9
Makefile
|
|
@ -1,5 +1,10 @@
|
|||
test:
|
||||
docker build .
|
||||
TEST = "go test ./... -v -coverpkg=./... -coverprofile cp.out; go tool cover -func cp.out; rm cp.out"
|
||||
|
||||
build:
|
||||
docker build . -t underscore:latest
|
||||
|
||||
test: build
|
||||
docker run --name underscore --rm -i -t underscore bash -c $(TEST)
|
||||
|
||||
doc:
|
||||
cd docs && hugo server -D
|
||||
Loading…
Reference in a new issue