add coverage
This commit is contained in:
@@ -26,10 +26,13 @@ Test Go Application:
|
|||||||
script:
|
script:
|
||||||
- make test
|
- make test
|
||||||
- go test -v ./... 2>&1 | /home/gitlab-runner/go/bin/go-junit-report > report.xml
|
- go test -v ./... 2>&1 | /home/gitlab-runner/go/bin/go-junit-report > report.xml
|
||||||
|
- go test -coverprofile=coverage.out ./...
|
||||||
|
- /home/gitlab-runner/go/bin/gocover-cobertura < coverage.out > coverage.xml
|
||||||
- go vet ./...
|
- go vet ./...
|
||||||
artifacts:
|
artifacts:
|
||||||
reports:
|
reports:
|
||||||
junit: report.xml
|
junit: report.xml
|
||||||
|
cobertura: coverage.xml
|
||||||
|
|
||||||
Code analysis:
|
Code analysis:
|
||||||
stage: analysis
|
stage: analysis
|
||||||
|
|||||||
Reference in New Issue
Block a user