Skip to content

Commit

Permalink
build: patch Windows container, fixing Node 10 (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed May 7, 2019
1 parent 7fd4049 commit 0d3921f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .kokoro/test.bat
Expand Up @@ -17,7 +17,15 @@
cd /d %~dp0
cd ..

call npm install -g npm@latest || goto :error
@rem The image we're currently running has a broken version of Node.js enabled
@rem by nvm (v10.15.3), which has no npm bin. This hack uses the functional
@rem Node v8.9.1 to install npm@latest, it then uses this version of npm to
@rem install npm for v10.15.3.
call nvm use v8.9.1 || goto :error
call node C:\Users\kbuilder\AppData\Roaming\nvm-ps\versions\v8.9.1\node_modules\npm-bootstrap\bin\npm-cli.js i npm -g || goto :error
call nvm use v10.15.3 || goto :error
call node C:\Users\kbuilder\AppData\Roaming\nvm-ps\versions\v8.9.1\node_modules\npm\bin\npm-cli.js i npm -g || goto :error

call npm install || goto :error
call npm run test || goto :error

Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -104,7 +104,7 @@
"google-proto-files": "^0.20.0",
"gts": "^1.0.0",
"intelli-espower-loader": "^1.0.1",
"jsdoc": "^3.5.5",
"jsdoc": "3.5.5",
"jsdoc-baseline": "git+https://github.com/hegemonic/jsdoc-baseline.git",
"linkinator": "^1.1.2",
"mocha": "^6.0.0",
Expand Down

0 comments on commit 0d3921f

Please sign in to comment.