Skip to content

Commit 88f305a

Browse files
authored
Use gcloud functions beta (#646)
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.
1 parent 5fdb0ab commit 88f305a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.kokoro/appengine-datastore.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ gcloud config set project $GCLOUD_PROJECT
4343
# Deploy the app
4444
gcloud app deploy app.flexible.yaml --version $GAE_VERSION --no-promote --quiet
4545
if [ -e "worker.yaml" ]; then
46-
gcloud app deploy worker.yaml --version ${GAE_VERSION} --no-promote --quiet
46+
gcloud app deploy worker.yaml --version ${GAE_VERSION}-worker --no-promote --quiet
4747
fi
4848

4949

functions/helloworld/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"scripts": {
1515
"lint": "repo-tools lint",
1616
"pretest": "npm run lint",
17-
"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",
17+
"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",
1818
"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",
1919
"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"
2020
},

0 commit comments

Comments
 (0)