[commit: ghc] master: CircleCI: Save test results as JUnit XML (1ad0277)

git at git.haskell.org git at git.haskell.org
Thu May 3 19:02:12 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/1ad0277e4e7fb0e742cbf9b78e1ed41174864b22/ghc

>---------------------------------------------------------------

commit 1ad0277e4e7fb0e742cbf9b78e1ed41174864b22
Author: Matthew Pickering <matthew.pickering at tweag.io>
Date:   Thu May 3 12:35:22 2018 -0400

    CircleCI: Save test results as JUnit XML
    
    Reviewers: mrkkrp, bgamari
    
    Reviewed By: mrkkrp, bgamari
    
    Subscribers: thomie, carter
    
    GHC Trac Issues: #15093
    
    Differential Revision: https://phabricator.haskell.org/D4646


>---------------------------------------------------------------

1ad0277e4e7fb0e742cbf9b78e1ed41174864b22
 .circleci/config.yml | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/.circleci/config.yml b/.circleci/config.yml
index bdbbff0..74b88b3 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -57,7 +57,12 @@ aliases:
   - &test
     run:
       name: Test
-      command: make test SKIP_PERF_TESTS=YES
+      command: |
+        mkdir -p test-results
+        make test SKIP_PERF_TESTS=YES JUNIT_FILE=../../test-results/junit.xml
+  - &store_test_results
+    store_test_results:
+      path: test-results
   - &slowtest
     run:
       name: Full Test
@@ -99,6 +104,7 @@ jobs:
       - *bindist
       - *storeartifacts
       - *test
+      - *store_test_results
 
   "validate-x86_64-freebsd":
     resource_class: xlarge
@@ -118,6 +124,7 @@ jobs:
       - *bindist
       - *storeartifacts
       - *test
+      - *store_test_results
 
   "validate-x86_64-darwin":
     macos:
@@ -139,6 +146,7 @@ jobs:
       - *bindist
       - *storeartifacts
       - *test
+      - *store_test_results
 
   "validate-hadrian-x86_64-linux":
     resource_class: xlarge
@@ -168,6 +176,7 @@ jobs:
       - *configure_unreg
       - *make
       - *test
+      - *store_test_results
 
   "validate-x86_64-linux-llvm":
     resource_class: xlarge
@@ -209,6 +218,7 @@ jobs:
       - *configure_unreg
       - *make
       - *test
+      - *store_test_results
 
   "validate-i386-linux":
     resource_class: xlarge
@@ -227,6 +237,7 @@ jobs:
       - *bindist
       - *storeartifacts
       - *test
+      - *store_test_results
 
   "validate-x86_64-fedora":
     resource_class: xlarge
@@ -245,6 +256,7 @@ jobs:
       - *bindist
       - *storeartifacts
       - *test
+      - *store_test_results
 
 workflows:
   version: 2



More information about the ghc-commits mailing list