Skip to content

Commit 79305b7

Browse files
authored
build: updated kokoro config for coverage and release-please (#715)
1 parent 59f5f72 commit 79305b7

8 files changed

+37
-95
lines changed

.kokoro/continuous/node10/test.cfg

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
}
10+
11+
# token used by release-please to keep an up-to-date release PR.
12+
before_action {
13+
fetch_keystore {
14+
keystore_resource {
15+
keystore_config_id: 73713
16+
keyname: "yoshi-automation-github-key"
17+
}
18+
}
19+
}

.kokoro/release-candidate-issue.sh

-25
This file was deleted.

.kokoro/release-requested.sh

-25
This file was deleted.

.kokoro/release/publish.cfg

+9
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ before_action {
99
}
1010
}
1111

12+
before_action {
13+
fetch_keystore {
14+
keystore_resource {
15+
keystore_config_id: 73713
16+
keyname: "yoshi-automation-github-key"
17+
}
18+
}
19+
}
20+
1221
before_action {
1322
fetch_keystore {
1423
keystore_resource {

.kokoro/release/release-candidate-issue.cfg

-22
This file was deleted.

.kokoro/release/release-requested.cfg

-22
This file was deleted.

.kokoro/test.sh

+8
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,11 @@ if npx check-node-version@3.3.0 --silent --node $COVERAGE_NODE; then
3535
else
3636
echo "coverage is only reported for Node $COVERAGE_NODE"
3737
fi
38+
39+
# if the GITHUB_TOKEN is set, we kick off a task to update the release-PR.
40+
GITHUB_TOKEN=$(cat $KOKORO_KEYSTORE_DIR/73713_yoshi-automation-github-key) || true
41+
if [ "$GITHUB_TOKEN" ]; then
42+
npx release-please release-pr --token=$GITHUB_TOKEN \
43+
--repo-url=googleapis/nodejs-storage \
44+
--package-name=@google-cloud/storage
45+
fi

synth.metadata

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"updateTime": "2019-05-17T01:12:33.148151Z",
2+
"updateTime": "2019-05-17T19:51:54.843028Z",
33
"sources": [
44
{
55
"template": {

0 commit comments

Comments
 (0)