Commit 756a364e authored by Evan Read's avatar Evan Read

Merge branch 'docs-junit-yaml-spacing' into 'master'

Fix yaml spacing in junit doc

Closes #213294

See merge request gitlab-org/gitlab!28747
parents 001a182d 232098fb
...@@ -87,8 +87,8 @@ Use the following job in `.gitlab-ci.yml`. This includes the `artifacts:paths` k ...@@ -87,8 +87,8 @@ Use the following job in `.gitlab-ci.yml`. This includes the `artifacts:paths` k
ruby: ruby:
stage: test stage: test
script: script:
- bundle install - bundle install
- rspec spec/lib/ --format RspecJunitFormatter --out rspec.xml - rspec spec/lib/ --format RspecJunitFormatter --out rspec.xml
artifacts: artifacts:
paths: paths:
- rspec.xml - rspec.xml
...@@ -105,8 +105,8 @@ Use the following job in `.gitlab-ci.yml`: ...@@ -105,8 +105,8 @@ Use the following job in `.gitlab-ci.yml`:
golang: golang:
stage: test stage: test
script: script:
- go get -u github.com/jstemmer/go-junit-report - go get -u github.com/jstemmer/go-junit-report
- go test -v 2>&1 | go-junit-report > report.xml - go test -v 2>&1 | go-junit-report > report.xml
artifacts: artifacts:
reports: reports:
junit: report.xml junit: report.xml
...@@ -127,7 +127,7 @@ matching by defining the following path: `build/test-results/test/**/TEST-*.xml` ...@@ -127,7 +127,7 @@ matching by defining the following path: `build/test-results/test/**/TEST-*.xml`
java: java:
stage: test stage: test
script: script:
- gradle test - gradle test
artifacts: artifacts:
reports: reports:
junit: build/test-results/test/**/TEST-*.xml junit: build/test-results/test/**/TEST-*.xml
...@@ -143,7 +143,7 @@ reports, use the following job in `.gitlab-ci.yml`: ...@@ -143,7 +143,7 @@ reports, use the following job in `.gitlab-ci.yml`:
java: java:
stage: test stage: test
script: script:
- mvn verify - mvn verify
artifacts: artifacts:
reports: reports:
junit: junit:
...@@ -160,7 +160,7 @@ for JUnit: ...@@ -160,7 +160,7 @@ for JUnit:
pytest: pytest:
stage: test stage: test
script: script:
- pytest --junitxml=report.xml - pytest --junitxml=report.xml
artifacts: artifacts:
reports: reports:
junit: report.xml junit: report.xml
...@@ -181,7 +181,7 @@ will then be aggregated together. ...@@ -181,7 +181,7 @@ will then be aggregated together.
cpp: cpp:
stage: test stage: test
script: script:
- gtest.exe --gtest_output="xml:report.xml" - gtest.exe --gtest_output="xml:report.xml"
artifacts: artifacts:
reports: reports:
junit: report.xml junit: report.xml
...@@ -210,7 +210,7 @@ Test: ...@@ -210,7 +210,7 @@ Test:
- ./**/*test-result.xml - ./**/*test-result.xml
reports: reports:
junit: junit:
- ./**/*test-result.xml - ./**/*test-result.xml
``` ```
## Limitations ## Limitations
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment