File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,9 +107,7 @@ jobs:
107107 steps :
108108 - checkout
109109 - run : *npm_install_and_link
110- - run :
111- name : Build documentation.
112- command : npm run docs
110+ - run : npm run docs
113111 sample_tests :
114112 docker :
115113 - image : ' node:8'
@@ -164,5 +162,6 @@ jobs:
164162 user : node
165163 steps :
166164 - checkout
167- - run : ' echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc'
165+ - npm install
166+ - run : echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
168167 - run : npm publish --access=public
Original file line number Diff line number Diff line change 1+ # Format: //devtools/kokoro/config/proto/build.proto
2+
3+ # Build logs will be here
4+ action {
5+ define_artifacts {
6+ regex: " **/*sponge_log.xml"
7+ }
8+ }
9+
10+ # Download trampoline resources.
11+ gfile_resources: " /bigstore/cloud-devrel-kokoro-resources/trampoline"
12+
13+ # Use the trampoline script to run in docker.
14+ build_file: " nodejs-bigtable/.kokoro/trampoline.sh"
15+
16+ # Configure the docker image for kokoro-trampoline.
17+ env_vars: {
18+ key: " TRAMPOLINE_IMAGE"
19+ value: " gcr.io/cloud-devrel-kokoro-resources/node:10"
20+ }
21+ env_vars: {
22+ key: " TRAMPOLINE_BUILD_FILE"
23+ value: " github/nodejs-bigtable/.kokoro/test.sh"
24+ }
Original file line number Diff line number Diff line change 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+ set -xeo pipefail
18+
19+ cd $( dirname $0 ) /..
20+
21+ npm install
22+
23+ npm run docs
Original file line number Diff line number Diff line change 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+ set -xeo pipefail
18+
19+ cd $( dirname $0 ) /..
20+
21+ npm install
22+
23+ # Install and link samples
24+ cd samples/
25+ npm link ../
26+ npm install
27+ cd ..
28+
29+ npm run lint
Original file line number Diff line number Diff line change 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+ set -xeo pipefail
18+
19+ # Setup service account credentials.
20+ export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR} /service-account.json
21+ export GCLOUD_PROJECT=long-door-651
22+
23+ cd $( dirname $0 ) /..
24+
25+ npm install
26+
27+ # Install and link samples
28+ cd samples/
29+ npm link ../
30+ npm install
31+ cd ..
32+
33+ npm run samples-test
Original file line number Diff line number Diff line change 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+ set -xeo pipefail
18+
19+ # Setup service account credentials.
20+ export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR} /service-account.json
21+
22+ cd $( dirname $0 ) /..
23+
24+ npm install
25+
26+ npm run system-test
Original file line number Diff line number Diff line change 1+ @ rem Copyright 2018 gRPC authors.
2+ @ rem
3+ @ rem Licensed under the Apache License, Version 2.0 (the "License");
4+ @ rem you may not use this file except in compliance with the License.
5+ @ rem You may obtain a copy of the License at
6+ @ rem
7+ @ rem http://www.apache.org/licenses/LICENSE-2.0
8+ @ rem
9+ @ rem Unless required by applicable law or agreed to in writing, software
10+ @ rem distributed under the License is distributed on an "AS IS" BASIS,
11+ @ rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ @ rem See the License for the specific language governing permissions and
13+ @ rem limitations under the License.
14+
15+ @ echo " Starting Windows build"
16+
17+ cd /d %~dp0
18+ cd ..
19+
20+ call npm install || goto :error
21+ call npm run test || goto :error
22+
23+ goto :EOF
24+
25+ :error
26+ exit /b 1
Original file line number Diff line number Diff line change 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+ set -xeo pipefail
18+
19+ cd $( dirname $0 ) /..
20+
21+ npm install
22+ npm test
23+ node_modules/.bin/codecov
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # Copyright 2017 Google Inc.
3+ #
4+ # Licensed under the Apache License, Version 2.0 (the "License");
5+ # you may not use this file except in compliance with the License.
6+ # You may obtain a copy of the License at
7+ #
8+ # http://www.apache.org/licenses/LICENSE-2.0
9+ #
10+ # Unless required by applicable law or agreed to in writing, software
11+ # distributed under the License is distributed on an "AS IS" BASIS,
12+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ # See the License for the specific language governing permissions and
14+ # limitations under the License.
15+
16+ set -xeo pipefail
17+
18+ # Always run the cleanup script, regardless of the success of bouncing into
19+ # the container.
20+ function cleanup() {
21+ chmod +x ${KOKORO_GFILE_DIR} /trampoline_cleanup.sh
22+ ${KOKORO_GFILE_DIR} /trampoline_cleanup.sh
23+ echo " cleanup" ;
24+ }
25+ trap cleanup EXIT
26+
27+ python3 " ${KOKORO_GFILE_DIR} /trampoline_v1.py"
You can’t perform that action at this time.
0 commit comments