Improve build batch file
Rob Mensching committed
Jun 27, 2020 at 13:46 UTC
f1d9b41bde2786f9d982a6f6663e1b6675035213
2 files changed
+6
-7
appveyor.cmd
+5
-7
@@ -1,16 +1,14 @@
1
@setlocal
2
@pushd %~dp0
3
4
-nuget restore
4
+nuget restore || exit /b
5
6
-msbuild -p:Configuration=Release -t:Restore
6
+msbuild -p:Configuration=Release -t:Restore || exit /b
7
8
-msbuild -p:Configuration=Release src\test\WixToolsetTest.Firewall\WixToolsetTest.Firewall.csproj
8
+msbuild -p:Configuration=Release src\test\WixToolsetTest.Firewall\WixToolsetTest.Firewall.csproj || exit /b
9
+dotnet test -c Release --no-build src\test\WixToolsetTest.Firewall || exit /b
10
10
-msbuild -p:Configuration=Release -t:Pack src\wixext\WixToolset.Firewall.wixext.csproj
11
-
12
-msbuild -p:Configuration=Release src\test\WixToolsetTest.Firewall\WixToolsetTest.Firewall.csproj
13
-dotnet test -c Release --no-build src\test\WixToolsetTest.Firewall
11
+msbuild -p:Configuration=Release -t:Pack src\wixext\WixToolset.Firewall.wixext.csproj || exit /b
12
13
@popd
14
@endlocal
\ No newline at end of file
nuget.config
+1
@@ -2,6 +2,7 @@
2
<configuration>
3
<packageSources>
4
<clear />
5
+ <add key="wixtoolset-burn" value="https://ci.appveyor.com/nuget/wixtoolset-burn" />
6
<add key="wixtoolset-data" value="https://ci.appveyor.com/nuget/wixtoolset-data" />
7
<add key="wixtoolset-extensibility" value="https://ci.appveyor.com/nuget/wixtoolset-extensibility" />
8
<add key="wixtoolset-core" value="https://ci.appveyor.com/nuget/wixtoolset-core" />