Skip to content

Commit

Permalink
build: updated kokoro config for coverage and release-please (#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe authored May 17, 2019
1 parent 59f5f72 commit 79305b7
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 95 deletions.
19 changes: 19 additions & 0 deletions .kokoro/continuous/node10/test.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Bring in codecov.io master token into the build as $KOKORO_KEYSTORE_DIR/73713_dpebot_codecov_token
before_action {
fetch_keystore {
keystore_resource {
keystore_config_id: 73713
keyname: "dpebot_codecov_token"
}
}
}

# token used by release-please to keep an up-to-date release PR.
before_action {
fetch_keystore {
keystore_resource {
keystore_config_id: 73713
keyname: "yoshi-automation-github-key"
}
}
}
25 changes: 0 additions & 25 deletions .kokoro/release-candidate-issue.sh

This file was deleted.

25 changes: 0 additions & 25 deletions .kokoro/release-requested.sh

This file was deleted.

9 changes: 9 additions & 0 deletions .kokoro/release/publish.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ before_action {
}
}

before_action {
fetch_keystore {
keystore_resource {
keystore_config_id: 73713
keyname: "yoshi-automation-github-key"
}
}
}

before_action {
fetch_keystore {
keystore_resource {
Expand Down
22 changes: 0 additions & 22 deletions .kokoro/release/release-candidate-issue.cfg

This file was deleted.

22 changes: 0 additions & 22 deletions .kokoro/release/release-requested.cfg

This file was deleted.

8 changes: 8 additions & 0 deletions .kokoro/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,11 @@ if npx [email protected] --silent --node $COVERAGE_NODE; then
else
echo "coverage is only reported for Node $COVERAGE_NODE"
fi

# if the GITHUB_TOKEN is set, we kick off a task to update the release-PR.
GITHUB_TOKEN=$(cat $KOKORO_KEYSTORE_DIR/73713_yoshi-automation-github-key) || true
if [ "$GITHUB_TOKEN" ]; then
npx release-please release-pr --token=$GITHUB_TOKEN \
--repo-url=googleapis/nodejs-storage \
--package-name=@google-cloud/storage
fi
2 changes: 1 addition & 1 deletion synth.metadata
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"updateTime": "2019-05-17T01:12:33.148151Z",
"updateTime": "2019-05-17T19:51:54.843028Z",
"sources": [
{
"template": {
Expand Down

0 comments on commit 79305b7

Please sign in to comment.