aboutsummaryrefslogtreecommitdiff
path: root/src/api/api.cmd
blob: 75303ea29e11d2b7190622860657548a122a8945 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@setlocal
@pushd %~dp0

@set _C=Debug
:parse_args
@if /i "%1"=="release" set _C=Release
@if not "%1"=="" shift & goto parse_args

@echo Building api %_C%

:: restore
:: build
:: pack
msbuild -m -p:Configuration=%_C% api.proj || exit /b

:: test
dotnet test -c %_C% --no-build burn\test\WixToolsetTest.Mba.Core\WixToolsetTest.Mba.Core.csproj || exit /b
dotnet test -c %_C% --no-build wix\api_wix.sln || exit /b


@popd
@endlocal