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/libs | |
| 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/libs')
| -rw-r--r-- | src/libs/libs.cmd | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libs/libs.cmd b/src/libs/libs.cmd index 2cc56239..50a2db55 100644 --- a/src/libs/libs.cmd +++ b/src/libs/libs.cmd | |||
| @@ -2,15 +2,16 @@ | |||
| 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 |
| 8 | 9 | ||
| 9 | @echo Building libs %_C% | 10 | @echo Building libs %_C% |
| 10 | 11 | ||
| 11 | msbuild -Restore libs_t.proj -p:Configuration=%_C% -nologo -m -warnaserror -bl:..\..\build\logs\libs_build.binlog || exit /b | 12 | msbuild -Restore libs_t.proj -p:Configuration=%_C% -nologo -m -warnaserror -bl:%_L%\libs_build.binlog || exit /b |
| 12 | 13 | ||
| 13 | msbuild dutil\test\DutilUnitTest -t:Test -p:Configuration=%_C% -nologo || exit /b | 14 | msbuild dutil\test\DutilUnitTest -t:Test -p:Configuration=%_C% -nologo -p:CppCliTestResultsFile="%_L%\TestResults\DutilUnitTest.xunit2.xml" || exit /b |
| 14 | 15 | ||
| 15 | @popd | 16 | @popd |
| 16 | @endlocal | 17 | @endlocal |
