CI: Always try to gather test results
authorAdrian Perez de Castro <aperez@igalia.com>
Tue, 6 Aug 2019 13:16:21 +0000 (16:16 +0300)
committerRan Benita <ran234@gmail.com>
Fri, 9 Aug 2019 20:01:27 +0000 (23:01 +0300)
Resulting test logs should be always attached to the task, regardless
of whether the test suite ran successfully or not.

.azure-pipelines/steps/meson.yml

index 8cd2cca..b2a44c5 100644 (file)
@@ -14,8 +14,13 @@ steps:
   - bash: |
       meson test --print-errorlogs \
         --wrap='valgrind --leak-check=full --track-origins=yes --error-exitcode=99'
+    displayName: 'Tests (Meson)'
+    workingDirectory: ${{ parameters.workdir }}
+  - bash: |
+      shopt -s nullglob
       for file in "$(pwd)"/meson-logs/* ; do
         echo "##vso[task.uploadfile]${file}"
       done
-    displayName: 'Tests (Meson)'
+    displayName: 'Save Results (Meson)'
     workingDirectory: ${{ parameters.workdir }}
+    condition: always()