mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
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:
1 parent
14d356d0ab
commit
6bb057ec6a
1 file changed
+4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user