From 47ded770636fcc0eb64db82f92d4ba42294b4a89 Mon Sep 17 00:00:00 2001 From: DPE bot Date: Fri, 21 Sep 2018 15:08:53 -0700 Subject: [PATCH] Update CI config (#95) --- .circleci/npm-install-retry.js | 2 +- .kokoro/presubmit/node8/samples-test.cfg | 7 +++++++ .kokoro/presubmit/node8/system-test.cfg | 7 +++++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .kokoro/presubmit/node8/samples-test.cfg create mode 100644 .kokoro/presubmit/node8/system-test.cfg diff --git a/.circleci/npm-install-retry.js b/.circleci/npm-install-retry.js index ae3220d..3240aa2 100755 --- a/.circleci/npm-install-retry.js +++ b/.circleci/npm-install-retry.js @@ -6,7 +6,7 @@ let spawn = require('child_process').spawn; //USE: ./index.js [... NPM ARGS] // -let timeout = process.argv[2] || 60000; +let timeout = process.argv[2] || process.env.NPM_INSTALL_TIMEOUT || 60000; let attempts = process.argv[3] || 3; let args = process.argv.slice(4); if (args.length === 0) { diff --git a/.kokoro/presubmit/node8/samples-test.cfg b/.kokoro/presubmit/node8/samples-test.cfg new file mode 100644 index 0000000..abb618a --- /dev/null +++ b/.kokoro/presubmit/node8/samples-test.cfg @@ -0,0 +1,7 @@ +# Download resources for system tests (service account key, etc.) +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs" + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/node-gtoken/.kokoro/samples-test.sh" +} diff --git a/.kokoro/presubmit/node8/system-test.cfg b/.kokoro/presubmit/node8/system-test.cfg new file mode 100644 index 0000000..1b3e961 --- /dev/null +++ b/.kokoro/presubmit/node8/system-test.cfg @@ -0,0 +1,7 @@ +# Download resources for system tests (service account key, etc.) +gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs" + +env_vars: { + key: "TRAMPOLINE_BUILD_FILE" + value: "github/node-gtoken/.kokoro/system-test.sh" +}