Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime Martinez <jmartinez@gitlab.com>2020-12-07 07:40:45 +0300
committerJaime Martinez <jmartinez@gitlab.com>2020-12-07 07:40:45 +0300
commit39bd2710f86f90a0a6765fbd2d8c07e2493ad5e5 (patch)
tree1560b11970faa8a34ac299436bd96f72c90cc60b /.gitlab
parent0a1587752423d5851a8d1c09dc55bb212cb83374 (diff)
Use junit report
Diffstat (limited to '.gitlab')
-rw-r--r--.gitlab/ci/test.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/.gitlab/ci/test.yml b/.gitlab/ci/test.yml
index 3218d8ee..d862ccd7 100644
--- a/.gitlab/ci/test.yml
+++ b/.gitlab/ci/test.yml
@@ -7,6 +7,7 @@
script:
- echo "Running all tests without daemonizing..."
- make test
+ - make junit-report
- echo "Running just the acceptance tests daemonized (tmpdir)...."
- TEST_DAEMONIZE=tmpdir make acceptance
- echo "Running just the acceptance tests daemonized (inplace)...."
@@ -74,3 +75,14 @@ check deps:
needs: ['download deps']
script:
- make deps-check
+
+## Use https://github.com/jstemmer/go-junit-report to generate a JUnit report format XML file with go
+golang:
+ stage: test
+ script:
+ - go get -u github.com/jstemmer/go-junit-report
+ - go test -v 2>&1 | go-junit-report -set-exit-code > report.xml
+ artifacts:
+ when: always
+ reports:
+ junit: report.xml