Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fix: runs sample tests in java 8 and java 11 (#345)
Adds configuration files in kokoro to run sample tests in java 8 and java 11. These were added in the continuous, nightly and presubmit builds.
- Loading branch information
Showing
with
126 additions
and 0 deletions.
- +25 −0 .kokoro/continuous/samples/common.cfg
- +7 −0 .kokoro/continuous/samples/samples-java11.cfg
- +7 −0 .kokoro/continuous/samples/samples-java8.cfg
- +32 −0 .kokoro/nightly/samples/common.cfg
- +7 −0 .kokoro/nightly/samples/samples-java11.cfg
- +7 −0 .kokoro/nightly/samples/samples-java8.cfg
- +27 −0 .kokoro/presubmit/samples/common.cfg
- +7 −0 .kokoro/presubmit/samples/samples-java11.cfg
- +7 −0 .kokoro/presubmit/samples/samples-java8.cfg
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,25 @@ | ||
# Format: //devtools/kokoro/config/proto/build.proto | ||
|
||
env_vars: { | ||
key: "JOB_TYPE" | ||
value: "samples" | ||
} | ||
|
||
env_vars: { | ||
key: "GCLOUD_PROJECT" | ||
value: "gcloud-devel" | ||
} | ||
|
||
env_vars: { | ||
key: "GOOGLE_APPLICATION_CREDENTIALS" | ||
value: "keystore/73713_java_it_service_account" | ||
} | ||
|
||
before_action { | ||
fetch_keystore { | ||
keystore_resource { | ||
keystore_config_id: 73713 | ||
keyname: "java_it_service_account" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,7 @@ | ||
# Format: //devtools/kokoro/config/proto/build.proto | ||
|
||
# Configure the docker image for kokoro-trampoline. | ||
env_vars: { | ||
key: "TRAMPOLINE_IMAGE" | ||
value: "gcr.io/cloud-devrel-kokoro-resources/java11" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,7 @@ | ||
# Format: //devtools/kokoro/config/proto/build.proto | ||
|
||
# Configure the docker image for kokoro-trampoline. | ||
env_vars: { | ||
key: "TRAMPOLINE_IMAGE" | ||
value: "gcr.io/cloud-devrel-kokoro-resources/java8" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,32 @@ | ||
# Format: //devtools/kokoro/config/proto/build.proto | ||
|
||
env_vars: { | ||
key: "JOB_TYPE" | ||
value: "samples" | ||
} | ||
|
||
# TODO: remove this after we've migrated all tests and scripts | ||
env_vars: { | ||
key: "GCLOUD_PROJECT" | ||
value: "java-docs-samples-testing" | ||
} | ||
|
||
env_vars: { | ||
key: "GOOGLE_CLOUD_PROJECT" | ||
value: "java-docs-samples-testing" | ||
} | ||
|
||
env_vars: { | ||
key: "GOOGLE_APPLICATION_CREDENTIALS" | ||
value: "secret_manager/java-docs-samples-service-account" | ||
} | ||
|
||
env_vars: { | ||
key: "SECRET_MANAGER_KEYS" | ||
value: "java-docs-samples-service-account" | ||
} | ||
|
||
env_vars: { | ||
key: "ENABLE_BUILD_COP" | ||
value: "true" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,7 @@ | ||
# Format: //devtools/kokoro/config/proto/build.proto | ||
|
||
# Configure the docker image for kokoro-trampoline. | ||
env_vars: { | ||
key: "TRAMPOLINE_IMAGE" | ||
value: "gcr.io/cloud-devrel-kokoro-resources/java11" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,7 @@ | ||
# Format: //devtools/kokoro/config/proto/build.proto | ||
|
||
# Configure the docker image for kokoro-trampoline. | ||
env_vars: { | ||
key: "TRAMPOLINE_IMAGE" | ||
value: "gcr.io/cloud-devrel-kokoro-resources/java8" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,27 @@ | ||
# Format: //devtools/kokoro/config/proto/build.proto | ||
|
||
env_vars: { | ||
key: "JOB_TYPE" | ||
value: "samples" | ||
} | ||
|
||
# TODO: remove this after we've migrated all tests and scripts | ||
env_vars: { | ||
key: "GCLOUD_PROJECT" | ||
value: "java-docs-samples-testing" | ||
} | ||
|
||
env_vars: { | ||
key: "GOOGLE_CLOUD_PROJECT" | ||
value: "java-docs-samples-testing" | ||
} | ||
|
||
env_vars: { | ||
key: "GOOGLE_APPLICATION_CREDENTIALS" | ||
value: "secret_manager/java-docs-samples-service-account" | ||
} | ||
|
||
env_vars: { | ||
key: "SECRET_MANAGER_KEYS" | ||
value: "java-docs-samples-service-account" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,7 @@ | ||
# Format: //devtools/kokoro/config/proto/build.proto | ||
|
||
# Configure the docker image for kokoro-trampoline. | ||
env_vars: { | ||
key: "TRAMPOLINE_IMAGE" | ||
value: "gcr.io/cloud-devrel-kokoro-resources/java11" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,7 @@ | ||
# Format: //devtools/kokoro/config/proto/build.proto | ||
|
||
# Configure the docker image for kokoro-trampoline. | ||
env_vars: { | ||
key: "TRAMPOLINE_IMAGE" | ||
value: "gcr.io/cloud-devrel-kokoro-resources/java8" | ||
} |