Patchwork D9725: ci: generate and report XML test results

login
register
mail settings
Submitter phabricator
Date Jan. 12, 2021, 12:07 p.m.
Message ID <differential-rev-PHID-DREV-f2rmas5ha6lgrgnxsluz-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48036/
State New
Headers show

Comments

phabricator - Jan. 12, 2021, 12:07 p.m.
danchr created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D9725

AFFECTED FILES
  contrib/heptapod-ci.yml

CHANGE DETAILS




To: danchr, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/contrib/heptapod-ci.yml b/contrib/heptapod-ci.yml
--- a/contrib/heptapod-ci.yml
+++ b/contrib/heptapod-ci.yml
@@ -23,7 +23,16 @@ 
     script:
         - echo "python used, $PYTHON"
         - echo "$RUNTEST_ARGS"
-        - HGMODULEPOLICY="$TEST_HGMODULEPOLICY" "$PYTHON" tests/run-tests.py --color=always $RUNTEST_ARGS
+        - >
+          HGMODULEPOLICY="$TEST_HGMODULEPOLICY"
+          "$PYTHON" tests/run-tests.py
+          --outputdir ${CI_PROJECT_DIR}
+          --color=always
+          --xunit ${CI_PROJECT_DIR}/${CI_JOB_ID}.xml
+          $RUNTEST_ARGS
+    artifacts:
+        reports:
+            junit: ${CI_JOB_ID}.xml
 
 checks-py2:
     <<: *runtests