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/-/merge_requests/1497
This commit is contained in:
parent
8c13e3855e
commit
4401c8fae7
@ -9,7 +9,7 @@ stages:
|
|||||||
variables:
|
variables:
|
||||||
BUNDLE: "extensions-git.flatpak"
|
BUNDLE: "extensions-git.flatpak"
|
||||||
JS_LOG: "js-report.txt"
|
JS_LOG: "js-report.txt"
|
||||||
LINT_LOG: "eslint-report.txt"
|
LINT_LOG: "eslint-report.xml"
|
||||||
|
|
||||||
.only_default: &only_default
|
.only_default: &only_default
|
||||||
only:
|
only:
|
||||||
@ -44,11 +44,11 @@ eslint:
|
|||||||
stage: review
|
stage: review
|
||||||
script:
|
script:
|
||||||
- export NODE_PATH=$(npm root -g)
|
- export NODE_PATH=$(npm root -g)
|
||||||
- ./.gitlab-ci/run-eslint --output-file ${LINT_LOG}
|
- ./.gitlab-ci/run-eslint --output-file ${LINT_LOG} --format junit
|
||||||
<<: *only_default
|
<<: *only_default
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
reports:
|
||||||
- ${LINT_LOG}
|
junit: ${LINT_LOG}
|
||||||
when: always
|
when: always
|
||||||
|
|
||||||
potfile_check:
|
potfile_check:
|
||||||
|
@ -111,7 +111,7 @@ function getOption(...names) {
|
|||||||
const results = await Promise.all(ops);
|
const results = await Promise.all(ops);
|
||||||
const commonResults = createCommon(...results, branch !== undefined);
|
const commonResults = createCommon(...results, branch !== undefined);
|
||||||
|
|
||||||
const formatter = await regular.loadFormatter();
|
const formatter = await regular.loadFormatter(getOption('--format', '-f'));
|
||||||
const resultText = formatter.format(commonResults);
|
const resultText = formatter.format(commonResults);
|
||||||
|
|
||||||
if (outputPath) {
|
if (outputPath) {
|
||||||
|
Loading…
Reference in New Issue
Block a user