From: Vincent Fu Date: Tue, 26 May 2020 17:22:38 +0000 (-0400) Subject: appveyor: use on_finish section to upload artifacts X-Git-Tag: fio-3.21~46^2~2 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=75fdb108407d34de0928f1326debcfeef1c01445 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 --- 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'