Skip to content

Commit

Permalink
build: updated kokoro config for coverage and release-please (#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed May 17, 2019
1 parent 063b01d commit 22f529f
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 97 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 check-node-version@3.3.0 --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-logging \
--package-name=@google-cloud/logging
fi
6 changes: 3 additions & 3 deletions synth.metadata
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"updateTime": "2019-05-17T01:08:07.591281Z",
"updateTime": "2019-05-17T19:47:37.711101Z",
"sources": [
{
"generator": {
Expand All @@ -12,8 +12,8 @@
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "03269e767cff9dd644d7784a4d4350b2ba6daf69",
"internalRef": "248524261"
"sha": "99efb1441b7c2aeb75c69f8baf9b61d4221bb744",
"internalRef": "248724297"
}
},
{
Expand Down

0 comments on commit 22f529f

Please sign in to comment.