Merge pull request #50 from nicolasnoble/kokoro-windows

Adding JUnit reports.
This commit is contained in:
Nicolas Noble 2018-03-15 17:23:06 -07:00 committed by GitHub
commit 07ace87c1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 6 deletions

View File

@ -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
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
)
if %errorlevel% neq 0 exit /b %errorlevel%
node merge_kokoro_logs.js
if %FAILED% neq 0 exit /b 1
goto :EOF
:error

View File

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