This repository was archived by the owner on Mar 3, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6868 environment :
6969 NPM_CONFIG_PREFIX : /home/node/.npm-global
7070 - run : npm test
71- - run : node_modules/.bin/codecov
72-
7371 node8 :
7472 docker :
7573 - image : ' node:8'
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ let spawn = require('child_process').spawn;
66//USE: ./index.js <ms npm can be idle> <number of attempts> [... NPM ARGS]
77//
88
9- let timeout = process . argv [ 2 ] || 60000 ;
9+ let timeout = process . argv [ 2 ] || process . env . NPM_INSTALL_TIMEOUT || 60000 ;
1010let attempts = process . argv [ 3 ] || 3 ;
1111let args = process . argv . slice ( 4 ) ;
1212if ( args . length === 0 ) {
Original file line number Diff line number Diff line change 1+ # Download resources for system tests (service account key, etc.)
2+ gfile_resources: " /bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs"
3+
4+ env_vars: {
5+ key: " TRAMPOLINE_BUILD_FILE"
6+ value: " github/nodejs-storage/.kokoro/samples-test.sh"
7+ }
Original file line number Diff line number Diff line change 1+ # Download resources for system tests (service account key, etc.)
2+ gfile_resources: " /bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs"
3+
4+ env_vars: {
5+ key: " TRAMPOLINE_BUILD_FILE"
6+ value: " github/nodejs-storage/.kokoro/system-test.sh"
7+ }
Original file line number Diff line number Diff line change @@ -24,6 +24,13 @@ export GCLOUD_PROJECT=long-door-651
2424
2525cd $( dirname $0 ) /..
2626
27+ # Run a pre-test hook, if a pre-samples-test.sh is in the project
28+ if [ -f .kokoro/pre-samples-test.sh ]; then
29+ set +x
30+ . .kokoro/pre-samples-test.sh
31+ set -x
32+ fi
33+
2734npm install
2835
2936# Install and link samples
Original file line number Diff line number Diff line change @@ -26,7 +26,9 @@ cd $(dirname $0)/..
2626
2727# Run a pre-test hook, if a pre-system-test.sh is in the project
2828if [ -f .kokoro/pre-system-test.sh ]; then
29+ set +x
2930 . .kokoro/pre-system-test.sh
31+ set -x
3032fi
3133
3234npm install
Original file line number Diff line number Diff line change 1717cd /d %~dp0
1818cd ..
1919
20+ call npm install -g npm@ 5 || goto :error
21+
2022call npm install || goto :error
2123call npm run test || goto :error
2224
Original file line number Diff line number Diff line change @@ -22,4 +22,5 @@ cd $(dirname $0)/..
2222
2323npm install
2424npm test
25- node_modules/.bin/codecov
25+
26+ bash $KOKORO_GFILE_DIR /codecov.sh
Original file line number Diff line number Diff line change 1+ ---
2+ codecov :
3+ ci :
4+ - source.cloud.google.com
You can’t perform that action at this time.
0 commit comments