ci: Use junit output format

Gitlab has built-in support for junit reports, so switch eslint's
output to that format.

https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/136
This commit is contained in:
Florian Müllner
2020-11-07 01:55:02 +01:00
parent 9445bd2205
commit ba55bacab4
+4 -3
View File
@@ -5,7 +5,7 @@ stages:
- build
variables:
LINT_LOG: "eslint-report.txt"
LINT_LOG: "eslint-report.xml"
JS_LOG: "js-report.txt"
.only_default: &only_default
@@ -36,12 +36,13 @@ js_check:
eslint:
stage: review
script:
- eslint -o $LINT_LOG extensions --no-color || { cat $LINT_LOG; false; }
- eslint -o $LINT_LOG -f junit extensions
<<: *only_default
artifacts:
paths:
- ${LINT_LOG}
when: on_failure
reports:
junit: ${LINT_LOG}
build-bundles:
stage: build