Update Makefile

This commit is contained in:
Alec Sears
2019-10-10 15:46:03 -05:00
parent 49ecea2b90
commit b2d48e7d38

View File

@@ -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: