diff options
Diffstat (limited to 'appveyor.cmd')
-rw-r--r-- | appveyor.cmd | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/appveyor.cmd b/appveyor.cmd index 27d5eaec..02db695b 100644 --- a/appveyor.cmd +++ b/appveyor.cmd | |||
@@ -1,12 +1,20 @@ | |||
1 | @setlocal | 1 | @setlocal |
2 | @pushd %~dp0 | 2 | @pushd %~dp0 |
3 | @set _P=%~dp0build\Release\publish | 3 | @set _P=%~dp0build\Release\publish |
4 | @set _C=Release | ||
5 | @if /i "%1"=="debug" set _C=Debug | ||
4 | 6 | ||
5 | dotnet test -c Release src\test\WixToolsetTest.Converters || exit /b | 7 | :: Restore |
6 | dotnet test -c Release src\test\WixToolsetTest.Converters.Symbolizer || exit /b | 8 | msbuild -p:Configuration=%_C% -t:Restore || exit /b |
7 | 9 | ||
8 | dotnet pack -c Release src\WixToolset.Converters || exit /b | 10 | :: Build |
9 | dotnet pack -c Release src\WixToolset.Converters.Symbolizer || exit /b | 11 | msbuild -p:Configuration=%_C% || exit /b |
12 | |||
13 | :: Test | ||
14 | dotnet test -c %_C% --no-build || exit /b | ||
15 | |||
16 | :: Pack | ||
17 | msbuild -p:Configuration=%_C% -p:NoBuild=true -t:Pack || exit /b | ||
10 | 18 | ||
11 | @popd | 19 | @popd |
12 | @endlocal | 20 | @endlocal |