Commit 59f5f72 1 parent 3ee1a2c commit 59f5f72 Copy full SHA for 59f5f72
File tree 14 files changed +153
-30
lines changed
14 files changed +153
-30
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,16 @@ action {
7
7
}
8
8
}
9
9
10
+ # Bring in codecov.io master token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token
11
+ before_action {
12
+ fetch_keystore {
13
+ keystore_resource {
14
+ keystore_config_id: 73713
15
+ keyname: " dpebot_codecov_token"
16
+ }
17
+ }
18
+ }
19
+
10
20
# Download trampoline resources.
11
21
gfile_resources: " /bigstore/cloud-devrel-kokoro-resources/trampoline"
12
22
Original file line number Diff line number Diff line change 1
- # Bring in codecov.io master token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token
2
- before_action {
3
- fetch_keystore {
4
- keystore_resource {
5
- keystore_config_id: 73713
6
- keyname: " dpebot_codecov_token"
7
- }
8
- }
9
- }
Original file line number Diff line number Diff line change @@ -7,6 +7,16 @@ action {
7
7
}
8
8
}
9
9
10
+ # Bring in codecov.io master token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token
11
+ before_action {
12
+ fetch_keystore {
13
+ keystore_resource {
14
+ keystore_config_id: 73713
15
+ keyname: " dpebot_codecov_token"
16
+ }
17
+ }
18
+ }
19
+
10
20
# Download trampoline resources.
11
21
gfile_resources: " /bigstore/cloud-devrel-kokoro-resources/trampoline"
12
22
Original file line number Diff line number Diff line change 1
- # Bring in codecov.io master token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token
2
- before_action {
3
- fetch_keystore {
4
- keystore_resource {
5
- keystore_config_id: 73713
6
- keyname: " dpebot_codecov_token"
7
- }
8
- }
9
- }
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Copyright 2019 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
+ set -eo pipefail
18
+
19
+ export NPM_CONFIG_PREFIX=/home/node/.npm-global
20
+
21
+ GITHUB_TOKEN=$( cat $KOKORO_KEYSTORE_DIR /73713_yoshi-automation-github-key)
22
+
23
+ npx release-please candidate-issue --token=$GITHUB_TOKEN \
24
+ --repo-url=googleapis/nodejs-storage \
25
+ --package-name=@google-cloud/storage
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Copyright 2019 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
+ set -eo pipefail
18
+
19
+ export NPM_CONFIG_PREFIX=/home/node/.npm-global
20
+
21
+ GITHUB_TOKEN=$( cat $KOKORO_KEYSTORE_DIR /73713_yoshi-automation-github-key)
22
+
23
+ npx release-please detect-checked --token=$GITHUB_TOKEN \
24
+ --repo-url=googleapis/nodejs-storage \
25
+ --package-name=@google-cloud/storage
Original file line number Diff line number Diff line change
1
+ before_action {
2
+ fetch_keystore {
3
+ keystore_resource {
4
+ keystore_config_id: 73713
5
+ keyname: " yoshi-automation-github-key"
6
+ }
7
+ }
8
+ }
Original file line number Diff line number Diff line change @@ -9,15 +9,6 @@ before_action {
9
9
}
10
10
}
11
11
12
- before_action {
13
- fetch_keystore {
14
- keystore_resource {
15
- keystore_config_id: 73713
16
- keyname: " yoshi-automation-github-key"
17
- }
18
- }
19
- }
20
-
21
12
before_action {
22
13
fetch_keystore {
23
14
keystore_resource {
Original file line number Diff line number Diff line change
1
+ # Build logs will be here
2
+ action {
3
+ define_artifacts {
4
+ regex: " **/*sponge_log.xml"
5
+ }
6
+ }
7
+
8
+ # Download trampoline resources.
9
+ gfile_resources: " /bigstore/cloud-devrel-kokoro-resources/trampoline"
10
+
11
+ # Use the trampoline script to run in docker.
12
+ build_file: " nodejs-storage/.kokoro/trampoline.sh"
13
+
14
+ # Configure the docker image for kokoro-trampoline.
15
+ env_vars: {
16
+ key: " TRAMPOLINE_IMAGE"
17
+ value: " gcr.io/cloud-devrel-kokoro-resources/node:10-user"
18
+ }
19
+ env_vars: {
20
+ key: " TRAMPOLINE_BUILD_FILE"
21
+ value: " github/nodejs-storage/.kokoro/release-candidate-issue.sh"
22
+ }
Original file line number Diff line number Diff line change
1
+ # Build logs will be here
2
+ action {
3
+ define_artifacts {
4
+ regex: " **/*sponge_log.xml"
5
+ }
6
+ }
7
+
8
+ # Download trampoline resources.
9
+ gfile_resources: " /bigstore/cloud-devrel-kokoro-resources/trampoline"
10
+
11
+ # Use the trampoline script to run in docker.
12
+ build_file: " nodejs-storage/.kokoro/trampoline.sh"
13
+
14
+ # Configure the docker image for kokoro-trampoline.
15
+ env_vars: {
16
+ key: " TRAMPOLINE_IMAGE"
17
+ value: " gcr.io/cloud-devrel-kokoro-resources/node:10-user"
18
+ }
19
+ env_vars: {
20
+ key: " TRAMPOLINE_BUILD_FILE"
21
+ value: " github/nodejs-storage/.kokoro/release-requested.sh"
22
+ }
Original file line number Diff line number Diff line change @@ -42,3 +42,16 @@ if [ -f samples/package.json ]; then
42
42
43
43
npm run samples-test
44
44
fi
45
+
46
+ # codecov combines coverage across integration and unit tests. Include
47
+ # the logic below for any environment you wish to collect coverage for:
48
+ COVERAGE_NODE=10
49
+ if npx check-node-version@3.3.0 --silent --node $COVERAGE_NODE ; then
50
+ NYC_BIN=./node_modules/nyc/bin/nyc.js
51
+ if [ -f " $NYC_BIN " ]; then
52
+ $NYC_BIN report || true
53
+ fi
54
+ bash $KOKORO_GFILE_DIR /codecov.sh
55
+ else
56
+ echo " coverage is only reported for Node $COVERAGE_NODE "
57
+ fi
Original file line number Diff line number Diff line change 34
34
npm install
35
35
36
36
npm run system-test
37
+
38
+ # codecov combines coverage across integration and unit tests. Include
39
+ # the logic below for any environment you wish to collect coverage for:
40
+ COVERAGE_NODE=10
41
+ if npx check-node-version@3.3.0 --silent --node $COVERAGE_NODE ; then
42
+ NYC_BIN=./node_modules/nyc/bin/nyc.js
43
+ if [ -f " $NYC_BIN " ]; then
44
+ $NYC_BIN report || true
45
+ fi
46
+ bash $KOKORO_GFILE_DIR /codecov.sh
47
+ else
48
+ echo " coverage is only reported for Node $COVERAGE_NODE "
49
+ fi
Original file line number Diff line number Diff line change @@ -23,11 +23,13 @@ cd $(dirname $0)/..
23
23
npm install
24
24
npm test
25
25
26
+ # codecov combines coverage across integration and unit tests. Include
27
+ # the logic below for any environment you wish to collect coverage for:
26
28
COVERAGE_NODE=10
27
29
if npx check-node-version@3.3.0 --silent --node $COVERAGE_NODE ; then
28
30
NYC_BIN=./node_modules/nyc/bin/nyc.js
29
31
if [ -f " $NYC_BIN " ]; then
30
- $NYC_BIN report
32
+ $NYC_BIN report || true
31
33
fi
32
34
bash $KOKORO_GFILE_DIR /codecov.sh
33
35
else
Original file line number Diff line number Diff line change 1
1
{
2
- "updateTime": "2019-05-04T11:22:40.672305Z ",
2
+ "updateTime": "2019-05-17T01:12:33.148151Z ",
3
3
"sources": [
4
4
{
5
5
"template": {
6
6
"name": "node_library",
7
7
"origin": "synthtool.gcp",
8
- "version": "2019.5.2 "
8
+ "version": "2019.4.10 "
9
9
}
10
10
}
11
11
]
You can’t perform that action at this time.
0 commit comments