From ec89ea96ae7f42b227c0fb5f61cd21a19ef2e8de Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Fri, 31 Dec 2021 20:24:05 -0600 Subject: Upload test results and fail the build if any are missing. Always zip up the logs from %TEMP%. --- appveyor.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'appveyor.yml') diff --git a/appveyor.yml b/appveyor.yml index 8741026b..7cfc64bf 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -15,10 +15,24 @@ environment: DOTNET_CLI_TELEMETRY_OPTOUT: 1 NUGET_XMLDOC_MODE: skip WixSkipVsDevCmd: 1 + RuntimeTestsEnabled: true + +install: + - reg add HKLM\Software\Policies\Microsoft\Windows\Installer /t REG_SZ /v Logging /d voicewarmupx /f + - reg add HKLM\Software\WOW6432Node\Policies\Microsoft\Windows\Installer /t REG_SZ /v Logging /d voicewarmupx /f build_script: - src\build_official.cmd +after_build: + - 7z a "build\testresults.zip" @src\testresultfilelist.txt + +on_finish: + - ps: 7z a ('temp_logs_' + (Get-Date).tostring("yyyyMMddHHmmss") + '.zip') $env:TEMP\*.log $env:TEMP\..\*.log + - ps: 7z a ('build_logs_' + (Get-Date).tostring("yyyyMMddHHmmss") + '.zip') build\logs\ build\logs\TestResults\ + - ps: Push-AppveyorArtifact temp_logs_*.zip + - ps: Push-AppveyorArtifact build_logs_*.zip + test: off pull_requests: @@ -46,7 +60,6 @@ for: - master environment: - RuntimeTestsEnabled: true SigningUser: secure: s+b2kuhi/AlE8ZYFsNVHFLfgJOwi0fIKMCOP+xL++8U= SigningSecret: -- cgit v1.2.3-55-g6feb