feat: upgrade makefile
This commit is contained in:
parent
c0daf06ee6
commit
60b40c84f3
5
Makefile
5
Makefile
|
@ -13,8 +13,7 @@ test-coverage:
|
|||
mkdir ${COVERAGE_DIR}
|
||||
go test -v -coverprofile ${COVERAGE_DIR}/cover.out ./...
|
||||
go tool cover -html ${COVERAGE_DIR}/cover.out -o ${COVERAGE_DIR}/cover.html
|
||||
cd ${COVERAGE_DIR}
|
||||
open cover.html
|
||||
build:
|
||||
rm -rf ${BINARY_DIR}
|
||||
mkdir ${BINARY_DIR}
|
||||
go build -o ${BINARY_DIR}/${BINARY_NAME}
|
||||
env GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -o ./${BINARY_DIR}/${BINARY_NAME} main.go
|
Loading…
Reference in New Issue