From 7aaeafceb4c4b24fa170d75aab0075cb5a45995c Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Fri, 16 Mar 2018 18:59:56 +0100 Subject: [PATCH 1/2] Checking node version during tests to see if nvm worked properly. --- run-tests.sh | 2 ++ 1 file changed, 2 insertions(+) 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 From bccd79e71ed8823036ae8ece520bcd8311fcc16e Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Fri, 16 Mar 2018 20:17:22 +0100 Subject: [PATCH 2/2] Windows portion. --- run-tests.bat | 2 ++ 1 file changed, 2 insertions(+) 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