Skip to content

Commit

Permalink
Install emulator lazily + actually fetch secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
Ace Nassri committed Sep 12, 2018
1 parent 50a32d0 commit c164c34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .kokoro/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export FUNCTIONS_BUCKET=my-bucket
cd github/nodejs-docs-samples/${PROJECT}

# Install dependencies
npm install -g @google-cloud/functions-emulator
npm install

# Configure gcloud
Expand All @@ -33,6 +32,7 @@ gcloud config set project $GCLOUD_PROJECT

# Start functions emulator, if appropriate
if [[ $PROJECT == functions/* ]]; then
npm install -g @google-cloud/functions-emulator
functions-emulator start
fi

Expand Down
3 changes: 3 additions & 0 deletions .kokoro/functions/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
# Download trampoline resources. These will be in ${KOKORO_GFILE_DIR}
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Download secrets from Cloud Storage.
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/nodejs-docs-samples"

# All builds use the trampoline script to run in docker.
build_file: "nodejs-docs-samples/.kokoro/trampoline.sh"

Expand Down

0 comments on commit c164c34

Please sign in to comment.