Skip to content

Commit

Permalink
Fix Kokoro config (#660)
Browse files Browse the repository at this point in the history
Use the correct PROJECT to `cd` into in the deployment tests.
  • Loading branch information
fhinkel authored Jun 14, 2018
1 parent dfe30b9 commit a74d7e6
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 44 deletions.
7 changes: 7 additions & 0 deletions .kokoro/appengine/test-deployment/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,10 @@ env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/nodejs-docs-samples/.kokoro/build-with-appengine.sh"
}


# Used in `gcloud app deploy ${APPENGINE_ENVIRONMENT}.yaml
env_vars: {
key: "APPENGINE_ENVIRONMENT"
value: "app"
}
8 changes: 1 addition & 7 deletions .kokoro/appengine/test-deployment/hello-world-flex.cfg
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Set GAE environment
env_vars: {
key: "APPENGINE_ENVIRONMENT"
value: "flexible"
}

# Set the folder in which the tests are run
env_vars: {
key: "PROJECT"
value: "hello-world"
value: "appengine/hello-world/flexible"
}
8 changes: 1 addition & 7 deletions .kokoro/appengine/test-deployment/hello-world-standard.cfg
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Set GAE environment
env_vars: {
key: "APPENGINE_ENVIRONMENT"
value: "standard"
}

# Set the folder in which the tests are run
env_vars: {
key: "PROJECT"
value: "hello-world"
value: "appengine/hello-world/standard"
}
8 changes: 1 addition & 7 deletions .kokoro/appengine/test-deployment/metadata-flex.cfg
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Set GAE environment
env_vars: {
key: "APPENGINE_ENVIRONMENT"
value: "flexible"
}

# Set the folder in which the tests are run
env_vars: {
key: "PROJECT"
value: "metadata"
value: "appengine/metadata/flexible"
}
8 changes: 1 addition & 7 deletions .kokoro/appengine/test-deployment/metadata-standard.cfg
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Set GAE environment
env_vars: {
key: "APPENGINE_ENVIRONMENT"
value: "standard"
}

# Set the folder in which the tests are run
env_vars: {
key: "PROJECT"
value: "metadata"
value: "appengine/metadata/standard"
}
8 changes: 1 addition & 7 deletions .kokoro/appengine/test-deployment/storage-flex.cfg
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Set GAE environment
env_vars: {
key: "APPENGINE_ENVIRONMENT"
value: "flexible"
}

# Set the folder in which the tests are run
env_vars: {
key: "PROJECT"
value: "storage"
value: "appengine/storage/flexible"
}
8 changes: 1 addition & 7 deletions .kokoro/appengine/test-deployment/storage-standard.cfg
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Set GAE environment
env_vars: {
key: "APPENGINE_ENVIRONMENT"
value: "standard"
}

# Set the folder in which the tests are run
env_vars: {
key: "PROJECT"
value: "storage"
value: "appengine/storage/standard"
}
4 changes: 2 additions & 2 deletions .kokoro/build-with-appengine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ gcloud auth activate-service-account --key-file "$GOOGLE_APPLICATION_CREDENTIALS
gcloud config set project $GCLOUD_PROJECT

export NODE_ENV=development
export GAE_VERSION=doc-sample-${PROJECT}-flex
export GAE_VERSION=doc-sample-${PROJECT}-${APPENGINE_ENVIRONMENT}

# Register post-test cleanup
function cleanup {
Expand All @@ -48,7 +48,7 @@ gcloud config set project $GCLOUD_PROJECT


# Deploy the app
gcloud app deploy --version $GAE_VERSION --no-promote --quiet
gcloud app deploy ${APPENGINE_ENVIRONMENT}.yaml --version $GAE_VERSION --no-promote --quiet
if [ -e "worker.yaml" ]; then
gcloud app deploy worker.yaml --version ${GAE_VERSION} --no-promote --quiet
fi
Expand Down

0 comments on commit a74d7e6

Please sign in to comment.