Skip to content

Commit

Permalink
Merge pull request #50 from nicolasnoble/kokoro-windows
Browse files Browse the repository at this point in the history
Adding JUnit reports.
  • Loading branch information
nicolasnoble authored Mar 16, 2018
2 parents 54c22db + e2b3f31 commit 07ace87
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
18 changes: 12 additions & 6 deletions run-tests.bat
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,25 @@ nvm use 8.5.0

call npm install || goto :error

SET JUNIT_REPORT_STACK=1
SET FAILED=0

for %%v in (4.8.4 6.11.3 7.9.0 8.5.0) do (
nvm install %%v
nvm use %%v
npm install -g npm
call npm install -g npm
node -e "console.log(process.versions)"

call .\node_modules\.bin\gulp clean.all || goto :error
call .\node_modules\.bin\gulp setup.windows || goto :error
call .\node_modules\.bin\gulp native.test || goto :error
)
mkdir reports\node%%v
SET JUNIT_REPORT_PATH=reports/node%%v

if %errorlevel% neq 0 exit /b %errorlevel%
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
)

node merge_kokoro_logs.js
if %FAILED% neq 0 exit /b 1
goto :EOF

:error
Expand Down
5 changes: 5 additions & 0 deletions test/kokoro/windows.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@
# Location of the continuous shell script in repository.
build_file: "grpc-node/test/kokoro.bat"
timeout_mins: 60
action {
define_artifacts {
regex: "github/grpc-node/reports/**/sponge_log.xml"
}
}

0 comments on commit 07ace87

Please sign in to comment.