diff options
Diffstat (limited to 'src/ext/Http/http.cmd')
| -rw-r--r-- | src/ext/Http/http.cmd | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/ext/Http/http.cmd b/src/ext/Http/http.cmd new file mode 100644 index 00000000..e1994af3 --- /dev/null +++ b/src/ext/Http/http.cmd | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | @setlocal | ||
| 2 | @pushd %~dp0 | ||
| 3 | |||
| 4 | @set _C=Debug | ||
| 5 | :parse_args | ||
| 6 | @if /i "%1"=="release" set _C=Release& shift | ||
| 7 | @if not "%1"=="" shift & goto parse_args | ||
| 8 | |||
| 9 | @echo Http.wixext build %_C% | ||
| 10 | |||
| 11 | :: Restore | ||
| 12 | msbuild -t:Restore -p:Configuration=%_C% || exit /b | ||
| 13 | |||
| 14 | :: Build | ||
| 15 | msbuild -t:Build -p:Configuration=%_C% test\WixToolsetTest.Http\WixToolsetTest.Http.csproj || exit /b | ||
| 16 | |||
| 17 | :: Test | ||
| 18 | dotnet test -c %_C% --no-build test\WixToolsetTest.Http || exit /b | ||
| 19 | |||
| 20 | :: Pack | ||
| 21 | msbuild -t:Pack -p:Configuration=%_C% wixext\WixToolset.Http.wixext.csproj || exit /b | ||
| 22 | |||
| 23 | @popd | ||
| 24 | @endlocal | ||
