win,build: exit when addons fail to build

PR-URL: https://github.com/nodejs/node/pull/8412
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
João Reis authored and Jeremiah Senkpiel committed 2016-09-13 17:04:43 -07:00
1 parent 14d356d0ab
commit 6bb057ec6a
1 file changed
+4
+4
View File
@@ -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