Merge pull request #229 from nicolasnoble/check-node

Checking node version during tests to see if nvm worked properly.
This commit is contained in:
Nicolas Noble 2018-03-16 14:24:02 -07:00 committed by GitHub
commit 5da1bd4077
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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