Skip to content

Commit

Permalink
Add gcloud auth for kokoro tests (#658)
Browse files Browse the repository at this point in the history
  • Loading branch information
fhinkel authored Jun 14, 2018
1 parent 263a3f6 commit dee7ed0
Showing 1 changed file with 8 additions and 1 deletion.
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

0 comments on commit dee7ed0

Please sign in to comment.