mirror of
https://gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud
synced 2025-06-24 03:02:27 +00:00
fix #7: moved to gomodules
This commit is contained in:
11
Makefile
11
Makefile
@ -11,22 +11,21 @@ lint: ## Lint the files
|
||||
@golint -set_exit_status ${PKG_LIST}
|
||||
|
||||
test: ## Run unittests
|
||||
@go test -v .
|
||||
@GO111MODULE=on go test -mod=vendor -v .
|
||||
|
||||
race: dep ## Run data race detector
|
||||
@go test -v -race ${PKG_LIST}
|
||||
@GO111MODULE=on go test -mod=vendor -v -race ${PKG_LIST}
|
||||
|
||||
msan: dep ## Run memory sanitizer
|
||||
@go test -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
|
||||
@mkdir -p vendor
|
||||
@govendor add +external
|
||||
@GO111MODULE=on go mod vendor
|
||||
|
||||
push: dep lint test coverage ## Push to git repository
|
||||
@git push origin master
|
||||
|
Reference in New Issue
Block a user