diff --git a/run-tests.bat b/run-tests.bat index 6359dde0..547899e7 100644 --- a/run-tests.bat +++ b/run-tests.bat @@ -41,6 +41,8 @@ for %%v in (4.8.4 6.11.3 7.9.0 8.5.0) do ( mkdir reports\node%%v SET JUNIT_REPORT_PATH=reports/node%%v + node -e "process.exit(process.version.startsWith('v%%v') ? 0 : -1)" || goto :error + call .\node_modules\.bin\gulp clean.all || SET FAILED=1 call .\node_modules\.bin\gulp setup.windows || SET FAILED=1 call .\node_modules\.bin\gulp native.test || SET FAILED=1 diff --git a/run-tests.sh b/run-tests.sh index 5df88186..1444158b 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -53,6 +53,8 @@ do mkdir -p "reports/node$version" + node -e 'process.exit(process.version.startsWith("v'$version'") ? 0 : -1)' + # Install dependencies and link packages together. ./node_modules/.bin/gulp clean.all ./node_modules/.bin/gulp setup