Skip to content

Commit

Permalink
Update kokoro config (#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpebot authored and JustinBeckwith committed Oct 2, 2018
1 parent 5600916 commit 4869f78
Show file tree
Hide file tree
Showing 24 changed files with 65 additions and 26 deletions.
2 changes: 0 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ jobs:
environment:
NPM_CONFIG_PREFIX: /home/node/.npm-global
- run: npm test
- run: node_modules/.bin/codecov

node8:
docker:
- image: 'node:8'
Expand Down
2 changes: 1 addition & 1 deletion .circleci/npm-install-retry.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let spawn = require('child_process').spawn;
//USE: ./index.js <ms npm can be idle> <number of attempts> [... NPM ARGS]
//

let timeout = process.argv[2] || 60000;
let timeout = process.argv[2] || process.env.NPM_INSTALL_TIMEOUT || 60000;
let attempts = process.argv[3] || 3;
let args = process.argv.slice(4);
if (args.length === 0) {
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Thanks for stopping by to let us know something could be better!
Please run down the following list and make sure you've tried the usual "quick
fixes":

- Search the issues already opened: https://github.com/google/google-auth-library-nodejs.git/issues
- Search the issues already opened: https://github.com/google/google-auth-library-nodejs/issues
- Search the issues on our "catch-all" repository: https://github.com/GoogleCloudPlatform/google-cloud-node
- Search StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform+node.js

Expand Down
15 changes: 13 additions & 2 deletions .kokoro/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,18 @@ action {
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Use the trampoline script to run in docker.
build_file: "google-auth-library-nodejs.git/.kokoro/trampoline.sh"
build_file: "google-auth-library-nodejs/.kokoro/trampoline.sh"

# 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"
backend_type: FASTCONFIGPUSH
}
}
}

# Configure the docker image for kokoro-trampoline.
env_vars: {
Expand All @@ -20,5 +31,5 @@ env_vars: {
}
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/google-auth-library-nodejs.git/.kokoro/test.sh"
value: "github/google-auth-library-nodejs/.kokoro/test.sh"
}
4 changes: 2 additions & 2 deletions .kokoro/continuous/node10/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ action {
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Use the trampoline script to run in docker.
build_file: "google-auth-library-nodejs.git/.kokoro/trampoline.sh"
build_file: "google-auth-library-nodejs/.kokoro/trampoline.sh"

# Configure the docker image for kokoro-trampoline.
env_vars: {
Expand All @@ -20,5 +20,5 @@ env_vars: {
}
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/google-auth-library-nodejs.git/.kokoro/test.sh"
value: "github/google-auth-library-nodejs/.kokoro/test.sh"
}
4 changes: 2 additions & 2 deletions .kokoro/continuous/node6/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ action {
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Use the trampoline script to run in docker.
build_file: "google-auth-library-nodejs.git/.kokoro/trampoline.sh"
build_file: "google-auth-library-nodejs/.kokoro/trampoline.sh"

# Configure the docker image for kokoro-trampoline.
env_vars: {
Expand All @@ -20,5 +20,5 @@ env_vars: {
}
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/google-auth-library-nodejs.git/.kokoro/test.sh"
value: "github/google-auth-library-nodejs/.kokoro/test.sh"
}
4 changes: 2 additions & 2 deletions .kokoro/continuous/node8/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ action {
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Use the trampoline script to run in docker.
build_file: "google-auth-library-nodejs.git/.kokoro/trampoline.sh"
build_file: "google-auth-library-nodejs/.kokoro/trampoline.sh"

# Configure the docker image for kokoro-trampoline.
env_vars: {
Expand All @@ -20,5 +20,5 @@ env_vars: {
}
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/google-auth-library-nodejs.git/.kokoro/test.sh"
value: "github/google-auth-library-nodejs/.kokoro/test.sh"
}
2 changes: 1 addition & 1 deletion .kokoro/continuous/node8/docs.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/google-auth-library-nodejs.git/.kokoro/docs.sh"
value: "github/google-auth-library-nodejs/.kokoro/docs.sh"
}
2 changes: 1 addition & 1 deletion .kokoro/continuous/node8/lint.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/google-auth-library-nodejs.git/.kokoro/lint.sh"
value: "github/google-auth-library-nodejs/.kokoro/lint.sh"
}
2 changes: 1 addition & 1 deletion .kokoro/continuous/node8/samples-test.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs"

env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/google-auth-library-nodejs.git/.kokoro/samples-test.sh"
value: "github/google-auth-library-nodejs/.kokoro/samples-test.sh"
}
2 changes: 1 addition & 1 deletion .kokoro/continuous/node8/system-test.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs"

env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/google-auth-library-nodejs.git/.kokoro/system-test.sh"
value: "github/google-auth-library-nodejs/.kokoro/system-test.sh"
}
4 changes: 2 additions & 2 deletions .kokoro/presubmit/node10/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ action {
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Use the trampoline script to run in docker.
build_file: "google-auth-library-nodejs.git/.kokoro/trampoline.sh"
build_file: "google-auth-library-nodejs/.kokoro/trampoline.sh"

# Configure the docker image for kokoro-trampoline.
env_vars: {
Expand All @@ -20,5 +20,5 @@ env_vars: {
}
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/google-auth-library-nodejs.git/.kokoro/test.sh"
value: "github/google-auth-library-nodejs/.kokoro/test.sh"
}
4 changes: 2 additions & 2 deletions .kokoro/presubmit/node6/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ action {
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Use the trampoline script to run in docker.
build_file: "google-auth-library-nodejs.git/.kokoro/trampoline.sh"
build_file: "google-auth-library-nodejs/.kokoro/trampoline.sh"

# Configure the docker image for kokoro-trampoline.
env_vars: {
Expand All @@ -20,5 +20,5 @@ env_vars: {
}
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/google-auth-library-nodejs.git/.kokoro/test.sh"
value: "github/google-auth-library-nodejs/.kokoro/test.sh"
}
4 changes: 2 additions & 2 deletions .kokoro/presubmit/node8/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ action {
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Use the trampoline script to run in docker.
build_file: "google-auth-library-nodejs.git/.kokoro/trampoline.sh"
build_file: "google-auth-library-nodejs/.kokoro/trampoline.sh"

# Configure the docker image for kokoro-trampoline.
env_vars: {
Expand All @@ -20,5 +20,5 @@ env_vars: {
}
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/google-auth-library-nodejs.git/.kokoro/test.sh"
value: "github/google-auth-library-nodejs/.kokoro/test.sh"
}
2 changes: 1 addition & 1 deletion .kokoro/presubmit/node8/docs.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/google-auth-library-nodejs.git/.kokoro/docs.sh"
value: "github/google-auth-library-nodejs/.kokoro/docs.sh"
}
2 changes: 1 addition & 1 deletion .kokoro/presubmit/node8/lint.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/google-auth-library-nodejs.git/.kokoro/lint.sh"
value: "github/google-auth-library-nodejs/.kokoro/lint.sh"
}
7 changes: 7 additions & 0 deletions .kokoro/presubmit/node8/samples-test.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Download resources for system tests (service account key, etc.)
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs"

env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/google-auth-library-nodejs/.kokoro/samples-test.sh"
}
7 changes: 7 additions & 0 deletions .kokoro/presubmit/node8/system-test.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Download resources for system tests (service account key, etc.)
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs"

env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/google-auth-library-nodejs/.kokoro/system-test.sh"
}
2 changes: 1 addition & 1 deletion .kokoro/presubmit/windows/test.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Use the test file directly
build_file: "google-auth-library-nodejs.git/.kokoro/test.bat"
build_file: "google-auth-library-nodejs/.kokoro/test.bat"
7 changes: 7 additions & 0 deletions .kokoro/samples-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ export GCLOUD_PROJECT=long-door-651

cd $(dirname $0)/..

# Run a pre-test hook, if a pre-samples-test.sh is in the project
if [ -f .kokoro/pre-samples-test.sh ]; then
set +x
. .kokoro/pre-samples-test.sh
set -x
fi

npm install

# Install and link samples
Expand Down
2 changes: 2 additions & 0 deletions .kokoro/system-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ cd $(dirname $0)/..

# Run a pre-test hook, if a pre-system-test.sh is in the project
if [ -f .kokoro/pre-system-test.sh ]; then
set +x
. .kokoro/pre-system-test.sh
set -x
fi

npm install
Expand Down
2 changes: 2 additions & 0 deletions .kokoro/test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
cd /d %~dp0
cd ..

call npm install -g npm@5 || goto :error

call npm install || goto :error
call npm run test || goto :error

Expand Down
3 changes: 2 additions & 1 deletion .kokoro/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ cd $(dirname $0)/..

npm install
npm test
node_modules/.bin/codecov

bash $KOKORO_GFILE_DIR/codecov.sh
4 changes: 4 additions & 0 deletions codecov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
codecov:
ci:
- source.cloud.google.com

0 comments on commit 4869f78

Please sign in to comment.