[polari] ci: Use junit output format



commit 9a626704a93f64136070ea1555bb0b944f8ac6ec
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Nov 7 01:25:46 2020 +0100

    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/polari/-/merge_requests/166

 .gitlab-ci.yml | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5414d1de..4dc55b9a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,7 +7,7 @@ stages:
 
 variables:
     BUNDLE: "polari-git.flatpak"
-    LINT_LOG: "eslint-report.txt"
+    LINT_LOG: "eslint-report.xml"
 
 .only_default: &only_default
     only:
@@ -27,12 +27,13 @@ eslint:
     image: registry.gitlab.gnome.org/gnome/gjs:fedora.static-analysis
     stage: review
     script:
-        - eslint -o $LINT_LOG --no-color src || { cat $LINT_LOG; false; }
+        - eslint -o $LINT_LOG -f junit src
     <<: *only_default
     artifacts:
         paths:
             - ${LINT_LOG}
-        when: on_failure
+        reports:
+            junit: ${LINT_LOG}
 
 .flatpak-template:
     stage: build


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]