mirror of
https://gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud
synced 2024-11-21 19:26:24 +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}
|
||||
|
||||
test: ## Run unittests
|
||||
@go test -mod=vendor -v .
|
||||
@GO111MODULE=on go test -mod=vendor -v .
|
||||
|
||||
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
|
||||
@go test -mod=vendor -msan -short ${PKG_LIST}
|
||||
@GO111MODULE=on go test -mod=vendor -msan -short ${PKG_LIST}
|
||||
|
||||
coverage: ## Generate global code coverage report
|
||||
@mkdir -p cover
|
||||
@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
|
||||
@GO111MODULE=on go mod vendor
|
||||
|
Loading…
Reference in New Issue
Block a user