Skip to content

Commit

Permalink
Use gcloud functions beta (#646)
Browse files Browse the repository at this point in the history
Kokoro CI has the following error:

ERROR: (gcloud) Invalid choice: 'functions'.
This command is available in one or more alternate release tracks.  Try:
  gcloud alpha functions
  gcloud beta functions

Drive-by fix: delete the correct appengine version in cleanup.
  • Loading branch information
fhinkel authored Jun 6, 2018
1 parent 5fdb0ab commit 88f305a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .kokoro/appengine-datastore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ gcloud config set project $GCLOUD_PROJECT
# Deploy the app
gcloud app deploy app.flexible.yaml --version $GAE_VERSION --no-promote --quiet
if [ -e "worker.yaml" ]; then
gcloud app deploy worker.yaml --version ${GAE_VERSION} --no-promote --quiet
gcloud app deploy worker.yaml --version ${GAE_VERSION}-worker --no-promote --quiet
fi


Expand Down
2 changes: 1 addition & 1 deletion functions/helloworld/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"scripts": {
"lint": "repo-tools lint",
"pretest": "npm run lint",
"e2e-test": "export FUNCTIONS_CMD='gcloud functions' && sh test/updateFunctions.sh && BASE_URL=\"https://$GCF_REGION-$GCLOUD_PROJECT.cloudfunctions.net/\" ava -T 20s --verbose test/*.test.js",
"e2e-test": "export FUNCTIONS_CMD='gcloud beta functions' && sh test/updateFunctions.sh && BASE_URL=\"https://$GCF_REGION-$GCLOUD_PROJECT.cloudfunctions.net/\" ava -T 20s --verbose test/*.test.js",
"test": "export FUNCTIONS_CMD='functions-emulator' && sh test/updateFunctions.sh && export BASE_URL=\"http://localhost:8010/$GCLOUD_PROJECT/$GCF_REGION\" && ava -T 20s --verbose -c 1 test/index.test.js test/*unit*test.js test/*integration*test.js",
"system-test": "export FUNCTIONS_CMD='functions-emulator' && sh test/updateFunctions.sh && export BASE_URL=\"http://localhost:8010/$GCLOUD_PROJECT/$GCF_REGION\" && ava -T 20s --verbose test/*.test.js"
},
Expand Down

0 comments on commit 88f305a

Please sign in to comment.