mirror of
https://gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud
synced 2024-11-22 08:16:25 +00:00
#7: fix Makefile
This commit is contained in:
parent
359e45d9d5
commit
f564979da5
8
Makefile
8
Makefile
@ -11,18 +11,18 @@ lint: ## Lint the files
|
|||||||
@golint -set_exit_status ${PKG_LIST}
|
@golint -set_exit_status ${PKG_LIST}
|
||||||
|
|
||||||
test: ## Run unittests
|
test: ## Run unittests
|
||||||
@go test -mod=vendor -v .
|
@GO111MODULE=on go test -mod=vendor -v .
|
||||||
|
|
||||||
race: dep ## Run data race detector
|
race: dep ## Run data race detector
|
||||||
@go test -mod=vendor -v -race ${PKG_LIST}
|
@GO111MODULE=on go test -mod=vendor -v -race ${PKG_LIST}
|
||||||
|
|
||||||
msan: dep ## Run memory sanitizer
|
msan: dep ## Run memory sanitizer
|
||||||
@go test -mod=vendor -msan -short ${PKG_LIST}
|
@GO111MODULE=on go test -mod=vendor -msan -short ${PKG_LIST}
|
||||||
|
|
||||||
coverage: ## Generate global code coverage report
|
coverage: ## Generate global code coverage report
|
||||||
@mkdir -p cover
|
@mkdir -p cover
|
||||||
@touch cover/${PROJECT_NAME}cov
|
@touch cover/${PROJECT_NAME}cov
|
||||||
go tool cover -html=cover/${PROJECT_NAME}cov -o coverage.html
|
@go tool cover -html=cover/${PROJECT_NAME}cov -o coverage.html
|
||||||
|
|
||||||
dep: ## Get the dependencies
|
dep: ## Get the dependencies
|
||||||
@GO111MODULE=on go mod vendor
|
@GO111MODULE=on go mod vendor
|
||||||
|
Loading…
Reference in New Issue
Block a user