Skip to content
Snippets Groups Projects
Commit 89cab96b authored by Erick Hitter's avatar Erick Hitter
Browse files

Add JUnit report

parent b20ae0f8
No related branches found
No related tags found
1 merge request!4WIP: Add additional CI checks
Pipeline #244 passed
...@@ -29,6 +29,9 @@ unit_tests: ...@@ -29,6 +29,9 @@ unit_tests:
stage: test stage: test
script: script:
- make test - make test
artifacts:
reports:
junit: report.xml
race_detector: race_detector:
stage: test stage: test
......
...@@ -11,7 +11,9 @@ lint: ...@@ -11,7 +11,9 @@ lint:
@golint -set_exit_status ${PKG_LIST} @golint -set_exit_status ${PKG_LIST}
test: test:
@go get -u github.com/jstemmer/go-junit-report
@go test -v ${PKG_LIST} @go test -v ${PKG_LIST}
@go test -v 2>&1 | go-junit-report > report.xml
race: dep race: dep
@go test -v -race ${PKG_LIST} @go test -v -race ${PKG_LIST}
...@@ -27,9 +29,9 @@ coverhtml: ...@@ -27,9 +29,9 @@ coverhtml:
dep: dep:
@go get -v -d ./... @go get -v -d ./...
@go get github.com/mitchellh/gox
build: dep build: dep
@go get github.com/mitchellh/gox
@gox -output="${CI_PROJECT_DIR}/${PROJECT_NAME}/{{.Dir}}_{{.OS}}_{{.Arch}}" -parallel=6 @gox -output="${CI_PROJECT_DIR}/${PROJECT_NAME}/{{.Dir}}_{{.OS}}_{{.Arch}}" -parallel=6
clean: clean:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment