fix coverage

This commit is contained in:
Philippe-Adrien Nousse 2018-07-31 15:32:58 +02:00
parent 1c4c2ce046
commit 4a40cce344
2 changed files with 3 additions and 14 deletions

View File

@ -40,15 +40,6 @@ code_coverage:
script:
- make coverage
code_coverage_report:
stage: test
tags:
- docker
script:
- make coverhtml
only:
- master
lint_code:
stage: test
tags:

View File

@ -17,13 +17,11 @@ race: dep ## Run data race detector
@go test -race ${PKG_LIST}
msan: dep ## Run memory sanitizer
@go test -msan ${PKG_LIST}
@go test -msan -short ${PKG_LIST}
coverage: ## Generate global code coverage report
./tools/coverage.sh;
coverhtml: ## Generate global code coverage report in HTML
./tools/coverage.sh html;
mkdir -p cover
go tool cover -html=cover/gonextcloud.cov -o coverage.html
dep: ## Get the dependencies
mkdir -p vendor