Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
have presubmit.cfg in separate node* folders (#151)
Browse files Browse the repository at this point in the history
Docs, lint, node6, node8, node10 kokoro configs
  • Loading branch information
jkwlui authored and crwilcox committed Aug 3, 2018
1 parent faa5a61 commit 58fe378
Show file tree
Hide file tree
Showing 20 changed files with 177 additions and 15 deletions.
21 changes: 21 additions & 0 deletions .kokoro/docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

set -eo pipefail

cd github/nodejs-vision
npm install
npm run docs
27 changes: 27 additions & 0 deletions .kokoro/docs/common.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Build logs will be here
action {
define_artifacts {
regex: "**/*sponge_log.xml"
}
}

# Download trampoline resources.
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Download resources for system tests (service account key, etc.)
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs"

# Use the trampoline script to run in docker.
build_file: "nodejs-vision/.kokoro/trampoline.sh"

# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/node:10"
}
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/nodejs-vision/.kokoro/docs.sh"
}
Empty file added .kokoro/docs/continuous.cfg
Empty file.
Empty file added .kokoro/docs/presubmit.cfg
Empty file.
21 changes: 21 additions & 0 deletions .kokoro/lint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

set -eo pipefail

cd github/nodejs-vision
npm install
npm run lint
27 changes: 27 additions & 0 deletions .kokoro/lint/common.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Build logs will be here
action {
define_artifacts {
regex: "**/*sponge_log.xml"
}
}

# Download trampoline resources.
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Download resources for system tests (service account key, etc.)
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs"

# Use the trampoline script to run in docker.
build_file: "nodejs-vision/.kokoro/trampoline.sh"

# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/node:10"
}
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/nodejs-vision/.kokoro/lint.sh"
}
Empty file added .kokoro/lint/continuous.cfg
Empty file.
Empty file added .kokoro/lint/presubmit.cfg
Empty file.
27 changes: 27 additions & 0 deletions .kokoro/node10/common.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Build logs will be here
action {
define_artifacts {
regex: "**/*sponge_log.xml"
}
}

# Download trampoline resources.
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Download resources for system tests (service account key, etc.)
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs"

# Use the trampoline script to run in docker.
build_file: "nodejs-vision/.kokoro/trampoline.sh"

# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/node:10"
}
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/nodejs-vision/.kokoro/build.sh"
}
Empty file added .kokoro/node10/continuous.cfg
Empty file.
Empty file added .kokoro/node10/presubmit.cfg
Empty file.
27 changes: 27 additions & 0 deletions .kokoro/node6/common.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Build logs will be here
action {
define_artifacts {
regex: "**/*sponge_log.xml"
}
}

# Download trampoline resources.
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Download resources for system tests (service account key, etc.)
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs"

# Use the trampoline script to run in docker.
build_file: "nodejs-vision/.kokoro/trampoline.sh"

# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/node:6"
}
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/nodejs-vision/.kokoro/build.sh"
}
Empty file added .kokoro/node6/continuous.cfg
Empty file.
Empty file added .kokoro/node6/presubmit.cfg
Empty file.
27 changes: 27 additions & 0 deletions .kokoro/node8/common.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Build logs will be here
action {
define_artifacts {
regex: "**/*sponge_log.xml"
}
}

# Download trampoline resources.
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Download resources for system tests (service account key, etc.)
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-nodejs"

# Use the trampoline script to run in docker.
build_file: "nodejs-vision/.kokoro/trampoline.sh"

# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/node:8"
}
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/nodejs-vision/.kokoro/build.sh"
}
Empty file added .kokoro/node8/continuous.cfg
Empty file.
Empty file added .kokoro/node8/presubmit.cfg
Empty file.
5 changes: 0 additions & 5 deletions .kokoro/presubmit-10.cfg

This file was deleted.

5 changes: 0 additions & 5 deletions .kokoro/presubmit-6.cfg

This file was deleted.

5 changes: 0 additions & 5 deletions .kokoro/presubmit-8.cfg

This file was deleted.

0 comments on commit 58fe378

Please sign in to comment.