From 75fdb108407d34de0928f1326debcfeef1c01445 Mon Sep 17 00:00:00 2001 From: Vincent Fu Date: Tue, 26 May 2020 13:22:38 -0400 Subject: [PATCH] appveyor: use on_finish section to upload artifacts We cannot rely on the artifacts section to upload test artifacts because when a test failure occurs, the entire build process stops and the artifacts are not uploaded. Use the on_finish section instead to upload test artifacts. Signed-off-by: Vincent Fu --- .appveyor.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index e2351be7..70c337f8 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -26,10 +26,10 @@ after_build: test_script: - 'bash.exe -lc "cd \"${APPVEYOR_BUILD_FOLDER}\" && file.exe fio.exe && make.exe test' - 'bash.exe -lc "cd \"${APPVEYOR_BUILD_FOLDER}\" && [ -f fio.exe ] && python.exe t/run-fio-tests.py --artifact-root test-artifacts --debug' - - 'bash.exe -lc "cd \"${APPVEYOR_BUILD_FOLDER}\" && [ -d test-artifacts ] && 7z a -t7z test-artifacts.7z test-artifacts -xr!foo.0.0 -xr!latency.?.0 -xr!fio_jsonplus_clat2csv.test' artifacts: - path: os\windows\*.msi name: msi - - path: test-artifacts.7z - name: test-artifacts + +on_finish: + - 'bash.exe -lc "cd \"${APPVEYOR_BUILD_FOLDER}\" && [ -d test-artifacts ] && 7z a -t7z test-artifacts.7z test-artifacts -xr!foo.0.0 -xr!latency.?.0 -xr!fio_jsonplus_clat2csv.test && appveyor PushArtifact test-artifacts.7z' -- 2.25.1