Commit bfcbde5009db3175cb924687d9273e6f7c5aa1b7

Edward Thomson 2018-08-26T16:10:34

ci: upload test results

diff --git a/.vsts-ci.yml b/.vsts-ci.yml
index c08a9b6..c9a8c75 100644
--- a/.vsts-ci.yml
+++ b/.vsts-ci.yml
@@ -36,6 +36,13 @@ jobs:
       workDir: '/build'
       containerCommand: '/src/ci/test.sh'
       detached: false
+  - task: PublishTestResults@2
+    displayName: Publish Test Results
+    condition: succeededOrFailed()
+    inputs:
+      testResultsFiles: 'results_*.xml'
+      searchFolder: '$(Build.BinariesDirectory)'
+      mergeTestResults: true
 
 - job: linux_trusty_gcc_mbedtls
   displayName: 'Linux (Trusty; GCC; mbedTLS)'
@@ -69,6 +76,13 @@ jobs:
       workDir: '/build'
       containerCommand: '/src/ci/test.sh'
       detached: false
+  - task: PublishTestResults@2
+    displayName: Publish Test Results
+    condition: succeededOrFailed()
+    inputs:
+      testResultsFiles: 'results_*.xml'
+      searchFolder: '$(Build.BinariesDirectory)'
+      mergeTestResults: true
 
 - job: linux_trusty_clang_openssl
   displayName: 'Linux (Trusty; Clang; OpenSSL)'
@@ -100,6 +114,13 @@ jobs:
       workDir: '/build'
       containerCommand: '/src/ci/test.sh'
       detached: false
+  - task: PublishTestResults@2
+    displayName: Publish Test Results
+    condition: succeededOrFailed()
+    inputs:
+      testResultsFiles: 'results_*.xml'
+      searchFolder: '$(Build.BinariesDirectory)'
+      mergeTestResults: true
 
 - job: linux_trusty_clang_mbedtls
   displayName: 'Linux (Trusty; Clang; mbedTLS)'
@@ -133,6 +154,13 @@ jobs:
       workDir: '/build'
       containerCommand: '/src/ci/test.sh'
       detached: false
+  - task: PublishTestResults@2
+    displayName: Publish Test Results
+    condition: succeededOrFailed()
+    inputs:
+      testResultsFiles: 'results_*.xml'
+      searchFolder: '$(Build.BinariesDirectory)'
+      mergeTestResults: true
 
 - job: macos
   displayName: 'macOS'
@@ -150,6 +178,13 @@ jobs:
     env:
       TMPDIR: $(Agent.TempDirectory)
       LEAK_CHECK: leaks
+  - task: PublishTestResults@2
+    displayName: Publish Test Results
+    condition: succeededOrFailed()
+    inputs:
+      testResultsFiles: 'results_*.xml'
+      searchFolder: '$(Build.BinariesDirectory)'
+      mergeTestResults: true
 
 - job: windows_vs_amd64
   displayName: 'Windows (Visual Studio; amd64)'
@@ -161,6 +196,13 @@ jobs:
       CMAKE_OPTIONS: -DMSVC_CRTDBG=ON -G"Visual Studio 12 2013 Win64"
   - powershell: . '$(Build.SourcesDirectory)\ci\test.ps1'
     displayName: Test
+  - task: PublishTestResults@2
+    displayName: Publish Test Results
+    condition: succeededOrFailed()
+    inputs:
+      testResultsFiles: 'results_*.xml'
+      searchFolder: '$(Build.BinariesDirectory)'
+      mergeTestResults: true
 
 - job: windows_vs_x86
   displayName: 'Windows (Visual Studio; x86)'
@@ -172,6 +214,13 @@ jobs:
       CMAKE_OPTIONS: -DMSVC_CRTDBG=ON -G"Visual Studio 12 2013"
   - powershell: . '$(Build.SourcesDirectory)\ci\test.ps1'
     displayName: Test
+  - task: PublishTestResults@2
+    displayName: Publish Test Results
+    condition: succeededOrFailed()
+    inputs:
+      testResultsFiles: 'results_*.xml'
+      searchFolder: '$(Build.BinariesDirectory)'
+      mergeTestResults: true
 
 - job: windows_mingw_amd64
   displayName: 'Windows (MinGW; amd64)'
@@ -189,6 +238,13 @@ jobs:
       PATH: $(Agent.TempDirectory)\mingw64\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\CMake\bin
   - powershell: . '$(Build.SourcesDirectory)\ci\test.ps1'
     displayName: Test
+  - task: PublishTestResults@2
+    displayName: Publish Test Results
+    condition: succeededOrFailed()
+    inputs:
+      testResultsFiles: 'results_*.xml'
+      searchFolder: '$(Build.BinariesDirectory)'
+      mergeTestResults: true
 
 - job: windows_mingw_x86
   displayName: 'Windows (MinGW; x86)'
@@ -206,3 +262,10 @@ jobs:
       PATH: $(Agent.TempDirectory)\mingw32\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\CMake\bin
   - powershell: . '$(Build.SourcesDirectory)\ci\test.ps1'
     displayName: Test
+  - task: PublishTestResults@2
+    displayName: Publish Test Results
+    condition: succeededOrFailed()
+    inputs:
+      testResultsFiles: 'results_*.xml'
+      searchFolder: '$(Build.BinariesDirectory)'
+      mergeTestResults: true