diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2021-12-31 20:24:05 -0600 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2022-01-01 10:24:08 -0600 |
commit | ec89ea96ae7f42b227c0fb5f61cd21a19ef2e8de (patch) | |
tree | 7e17745923b5b961a114693caf0005e40f651cfc /src/api | |
parent | 95b1be66d4c16b1b05b761c1771df229ac0e539c (diff) | |
download | wix-ec89ea96ae7f42b227c0fb5f61cd21a19ef2e8de.tar.gz wix-ec89ea96ae7f42b227c0fb5f61cd21a19ef2e8de.tar.bz2 wix-ec89ea96ae7f42b227c0fb5f61cd21a19ef2e8de.zip |
Upload test results and fail the build if any are missing.
Always zip up the logs from %TEMP%.
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/api.cmd | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/api/api.cmd b/src/api/api.cmd index 6a424c34..ffc403d5 100644 --- a/src/api/api.cmd +++ b/src/api/api.cmd | |||
@@ -2,6 +2,7 @@ | |||
2 | @pushd %~dp0 | 2 | @pushd %~dp0 |
3 | 3 | ||
4 | @set _C=Debug | 4 | @set _C=Debug |
5 | @set _L=%~dp0..\..\build\logs | ||
5 | :parse_args | 6 | :parse_args |
6 | @if /i "%1"=="release" set _C=Release | 7 | @if /i "%1"=="release" set _C=Release |
7 | @if not "%1"=="" shift & goto parse_args | 8 | @if not "%1"=="" shift & goto parse_args |
@@ -12,13 +13,13 @@ | |||
12 | :: build | 13 | :: build |
13 | :: pack | 14 | :: pack |
14 | 15 | ||
15 | msbuild api_t.proj -p:Configuration=%_C% -nologo -m -warnaserror -bl:..\..\build\logs\api_build.binlog || exit /b | 16 | msbuild api_t.proj -p:Configuration=%_C% -nologo -m -warnaserror -bl:%_L%\api_build.binlog || exit /b |
16 | 17 | ||
17 | :: test | 18 | :: test |
18 | dotnet test burn\test\WixToolsetTest.Mba.Core\WixToolsetTest.Mba.Core.csproj -c %_C% --nologo --no-build || exit /b | 19 | dotnet test burn\test\WixToolsetTest.Mba.Core -c %_C% --nologo --no-build -l "trx;LogFileName=%_L%\TestResults\WixToolsetTest.Mba.Core.trx" || exit /b |
19 | msbuild burn\test\BalUtilUnitTest -t:Test -p:Configuration=%_C% -nologo || exit /b | 20 | msbuild burn\test\BalUtilUnitTest -t:Test -p:Configuration=%_C% -nologo -p:CppCliTestResultsFile="%_L%\TestResults\BalUtilUnitTest.xunit2.xml" || exit /b |
20 | msbuild burn\test\BextUtilUnitTest -t:Test -p:Configuration=%_C% -nologo || exit /b | 21 | msbuild burn\test\BextUtilUnitTest -t:Test -p:Configuration=%_C% -nologo -p:CppCliTestResultsFile="%_L%\TestResults\BextUtilUnitTest.xunit2.xml" || exit /b |
21 | dotnet test wix\api_wix.sln -c %_C% --nologo --no-build || exit /b | 22 | dotnet test wix\api_wix.sln -c %_C% --nologo --no-build -l "trx;LogFileName=%_L%\TestResults\api_wix.trx" || exit /b |
22 | 23 | ||
23 | @popd | 24 | @popd |
24 | @endlocal | 25 | @endlocal |