Update Makefile
This commit is contained in:
6
Makefile
6
Makefile
@@ -12,7 +12,7 @@ build: build-frontend build-backend
|
|||||||
build-frontend:
|
build-frontend:
|
||||||
npm run dev-build
|
npm run dev-build
|
||||||
build-backend:
|
build-backend:
|
||||||
env GOOS=linux go build -o -mod=vendor ./dist/zabbix-plugin_linux_amd64 ./pkg
|
env GOOS=linux go build -mod=vendor -o ./dist/zabbix-plugin_linux_amd64 ./pkg
|
||||||
|
|
||||||
dist: dist-frontend dist-backend
|
dist: dist-frontend dist-backend
|
||||||
dist-frontend:
|
dist-frontend:
|
||||||
@@ -28,10 +28,10 @@ test: test-frontend test-backend
|
|||||||
test-frontend:
|
test-frontend:
|
||||||
npm run test
|
npm run test
|
||||||
test-backend:
|
test-backend:
|
||||||
go test -v -mod=vendor ./...
|
go test -v -mod=vendor ./pkg/...
|
||||||
test-ci:
|
test-ci:
|
||||||
npm run ci-test
|
npm run ci-test
|
||||||
go test -race -coverprofile=tmp/coverage/golang/coverage.txt -covermode=atomic -mod=vendor
|
go test -race -coverprofile=tmp/coverage/golang/coverage.txt -covermode=atomic -mod=vendor ./pkg/...
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
|||||||
Reference in New Issue
Block a user