Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

Commit 5750a4e

Browse files
Merge master into withTeeny
2 parents 26d16ef + b400ae6 commit 5750a4e

30 files changed

Lines changed: 419 additions & 669 deletions

.circleci/config.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ jobs:
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'

.circleci/npm-install-retry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;
1010
let attempts = process.argv[3] || 3;
1111
let args = process.argv.slice(4);
1212
if (args.length === 0) {

.kokoro/common.cfg

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,17 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
1313
# Use the trampoline script to run in docker.
1414
build_file: "nodejs-storage/.kokoro/trampoline.sh"
1515

16+
# Bring in codecov.io master token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token
17+
before_action {
18+
fetch_keystore {
19+
keystore_resource {
20+
keystore_config_id: 73713
21+
keyname: "dpebot_codecov_token"
22+
backend_type: FASTCONFIGPUSH
23+
}
24+
}
25+
}
26+
1627
# Configure the docker image for kokoro-trampoline.
1728
env_vars: {
1829
key: "TRAMPOLINE_IMAGE"

.kokoro/pre-samples-test.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
# Copyright 2018 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
. .kokoro/setup-vars.sh

.kokoro/pre-system-test.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,4 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
# nodejs-storage's system tests require additional project and
18-
# system test key
19-
export GCN_STORAGE_2ND_PROJECT_ID=gcloud-node-whitelist-ci-tests
20-
export GCN_STORAGE_2ND_PROJECT_KEY=${KOKORO_GFILE_DIR}/no-whitelist-key.json
17+
. .kokoro/setup-vars.sh
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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+
}

.kokoro/sample_tests.cfg

Lines changed: 0 additions & 10 deletions
This file was deleted.

.kokoro/sample_tests.sh

Lines changed: 0 additions & 44 deletions
This file was deleted.

.kokoro/samples-test.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ export GCLOUD_PROJECT=long-door-651
2424

2525
cd $(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+
2734
npm install
2835

2936
# Install and link samples

0 commit comments

Comments
 (0)