From ba55bacab42aa48c60412a32f9f1326585e80452 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sat, 7 Nov 2020 01:52:42 +0100 Subject: [PATCH] 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 --- .gitlab-ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e83c1eda..fcd0fbcf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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