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 <info@bnoordhuis.nl>
  • Loading branch information
joaocgreis authored and Fishrock123 committed Sep 14, 2016
1 parent 14d356d commit 6bb057e
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 @@ -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
Expand Down

0 comments on commit 6bb057e

Please sign in to comment.