Permalink
Browse files

win,build: exit when addons fail to build

PR-URL: #8412
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
  • Loading branch information...
joaocgreis authored and Fishrock123 committed Sep 5, 2016
1 parent 14d356d commit 6bb057ec6a1beaa6e361684becfe40b135eef0f7
Showing with 4 additions and 0 deletions.
  1. +4 −0 vcbuild.bat
View
@@ -343,12 +343,16 @@ for /d %%F in (test\addons\??_*) do (
)
:: generate
"%node_exe%" tools\doc\addon-verify.js
if %errorlevel% neq 0 exit /b %errorlevel%
:: building addons
SetLocal EnableDelayedExpansion
for /d %%F in (test\addons\*) do (
"%node_exe%" deps\npm\node_modules\node-gyp\bin\node-gyp rebuild ^
--directory="%%F" ^
--nodedir="%cd%"
if !errorlevel! neq 0 exit /b !errorlevel!
)
EndLocal
goto run-tests
:run-tests

0 comments on commit 6bb057e

Please sign in to comment.