main
cmd 44 lines 894 Bytes
Raw
1 @setlocal
2 @pushd %~dp0
3
4 @set _C=Debug
5 @set _L=%~dp0..\..\build\logs
6
7 :parse_args
8 @if /i "%1"=="release" set _C=Release
9 @if /i "%1"=="inc" set _INC=1
10 @if /i "%1"=="clean" set _CLEAN=1
11 @if not "%1"=="" shift & goto parse_args
12
13 @set _B=%~dp0..\..\build\burn\%_C%
14
15 :: Clean
16
17 @if "%_INC%"=="" call :clean
18 @if NOT "%_CLEAN%"=="" goto :end
19
20 @echo Building burn %_C%
21
22 :: burn
23
24 nuget restore || exit /b
25
26 msbuild burn_t.proj -p:Configuration=%_C% -tl -nologo -m -warnaserror -bl:%_L%\burn_build.binlog || exit /b
27
28 dotnet test ^
29 %_B%\x86\BurnUnitTest.dll ^
30 %_B%\x64\BurnUnitTest.dll ^
31 --nologo -l "trx;LogFileName=%_L%\TestResults\burn.trx" || exit /b
32
33 @goto :end
34
35 :clean
36 @rd /s/q "..\..\build\burn" 2> nul
37 @del "..\..\build\artifacts\WixToolset.Burn.*.nupkg" 2> nul
38 @del "%_L%\TestResults\burn.trx" 2> nul
39 @rd /s/q "%USERPROFILE%\.nuget\packages\wixtoolset.burn" 2> nul
40 @exit /b
41
42 :end
43 @popd
44 @endlocal