Skip to content

Commit

Permalink
win,build: exit when addons fail to build
Browse files Browse the repository at this point in the history
PR-URL: #8412
Reviewed-By: Ben Noordhuis <[email protected]>
  • Loading branch information
joaocgreis authored and Myles Borins committed Oct 11, 2016
1 parent 91a23b1 commit 18f0348
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vcbuild.bat
Original file line number Diff line number Diff line change
Expand Up @@ -336,12 +336,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
Expand Down

0 comments on commit 18f0348

Please sign in to comment.