Skip to content

Commit

Permalink
win,build: exit when addons fail to build
Browse files Browse the repository at this point in the history
  • Loading branch information
joaocgreis committed Sep 5, 2016
1 parent f26497c commit f2f2aa4
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 f2f2aa4

Please sign in to comment.