Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add gcloud auth for kokoro tests #658

Merged
merged 1 commit into from
Jun 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .kokoro/build-with-appengine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,15 @@
# See the License for the specific language governing permissions and
# limitations under the License.

set -e;

export GCLOUD_PROJECT=nodejs-docs-samples-tests

# Configure gcloud
export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/secrets-key.json
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

Expand All @@ -27,7 +34,7 @@ function cleanup {
fi
}
trap cleanup EXIT
set -e;


cd github/nodejs-docs-samples/${PROJECT}

Expand Down