Skip to content

Commit 9c58a1b

Browse files
authored
fix executable modes on .sh`s; add pre-system-test.sh hook (googleapis#356)
1 parent 60520d9 commit 9c58a1b

6 files changed

Lines changed: 25 additions & 0 deletions

File tree

handwritten/storage/.kokoro/docs.sh

100644100755
File mode changed.

handwritten/storage/.kokoro/lint.sh

100644100755
File mode changed.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
# Copyright 2018 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
# nodejs-storage's system tests require additional project and
18+
# system test key
19+
export GCN_STORAGE_2ND_PROJECT_ID=gcloud-node-whitelist-ci-tests
20+
export GCN_STORAGE_2ND_PROJECT_KEY=${KOKORO_GFILE_DIR}/no-whitelist-key.json

handwritten/storage/.kokoro/samples-test.sh

100644100755
File mode changed.

handwritten/storage/.kokoro/system-test.sh

100644100755
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/service-account.json
2121

2222
cd $(dirname $0)/..
2323

24+
# Run a pre-test hook, if a pre-system-test.sh is in the project
25+
if [ -f .kokoro/pre-system-test.sh ]; then
26+
. .kokoro/pre-system-test.sh
27+
fi
28+
2429
npm install
2530

2631
npm run system-test

handwritten/storage/.kokoro/test.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)