diff options
Diffstat (limited to 'appveyor.cmd')
-rw-r--r-- | appveyor.cmd | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/appveyor.cmd b/appveyor.cmd index 26804036..f21449d2 100644 --- a/appveyor.cmd +++ b/appveyor.cmd | |||
@@ -1,14 +1,19 @@ | |||
1 | @setlocal | 1 | @setlocal |
2 | @pushd %~dp0 | 2 | @pushd %~dp0 |
3 | @set _C=Release | ||
4 | @if /i "%1"=="debug" set _C=Debug | ||
3 | 5 | ||
4 | nuget restore || exit /b | 6 | :: Restore |
7 | msbuild -p:Configuration=%_C% -t:Restore || exit /b | ||
5 | 8 | ||
6 | msbuild -p:Configuration=Release -t:Restore || exit /b | 9 | :: Build |
10 | msbuild -p:Configuration=%_C% src\test\WixToolsetTest.Sql\WixToolsetTest.Sql.csproj || exit /b | ||
7 | 11 | ||
8 | msbuild -p:Configuration=Release src\test\WixToolsetTest.Sql\WixToolsetTest.Sql.csproj || exit /b | 12 | :: Test |
9 | dotnet test -c Release --no-build src\test\WixToolsetTest.Sql || exit /b | 13 | dotnet test -c %_C% --no-build src\test\WixToolsetTest.Sql || exit /b |
10 | 14 | ||
11 | msbuild -p:Configuration=Release -t:Pack src\wixext\WixToolset.Sql.wixext.csproj || exit /b | 15 | :: Pack |
16 | msbuild -p:Configuration=%_C% -p:NoBuild=true -t:Pack src\wixext\WixToolset.Sql.wixext.csproj || exit /b | ||
12 | 17 | ||
13 | @popd | 18 | @popd |
14 | @endlocal \ No newline at end of file | 19 | @endlocal |