Fail build if any command fails in the build batch file
Rob Mensching committed
Jun 4, 2020 at 10:25 UTC
90f501f6ad35a060fbb404f6a3eeaf1ac50e1a3c
1 file changed
+5
-5
appveyor.cmd
+5
-5
@@ -2,13 +2,13 @@
2
@pushd %~dp0
3
@set _P=%~dp0build\Release\publish
4
5
-dotnet test -c Release src\test\WixToolsetTest.CoreIntegration
5
+dotnet test -c Release src\test\WixToolsetTest.CoreIntegration || exit /b %ERRORLEVEL%
6
7
-dotnet pack -c Release src\WixToolset.Core
8
-dotnet pack -c Release src\WixToolset.Core.Burn
9
-dotnet pack -c Release src\WixToolset.Core.WindowsInstaller
7
+dotnet pack -c Release src\WixToolset.Core || exit /b %ERRORLEVEL%
8
+dotnet pack -c Release src\WixToolset.Core.Burn || exit /b %ERRORLEVEL%
9
+dotnet pack -c Release src\WixToolset.Core.WindowsInstaller || exit /b %ERRORLEVEL%
10
11
-dotnet pack -c Release src\WixToolset.Core.TestPackage
11
+dotnet pack -c Release src\WixToolset.Core.TestPackage || exit /b %ERRORLEVEL%
12
13
@popd
14
@endlocal