mirror of
https://github.com/mjl-/mox.git
synced 2024-12-26 08:23:48 +03:00
add install as target, calling "go install"
convenient for local testing, i'm often running "mox localserve", often helpful if it's the latest.
This commit is contained in:
parent
1ea851bb53
commit
4b459af4a8
1 changed files with 3 additions and 0 deletions
3
Makefile
3
Makefile
|
@ -18,6 +18,9 @@ build1:
|
|||
# build again, api json files above are embedded and new frontend code generated
|
||||
CGO_ENABLED=0 go build
|
||||
|
||||
install: build0 frontend
|
||||
CGO_ENABLED=0 go install
|
||||
|
||||
test:
|
||||
CGO_ENABLED=0 go test -shuffle=on -coverprofile cover.out ./...
|
||||
go tool cover -html=cover.out -o cover.html
|
||||
|
|
Loading…
Reference in a new issue