File tree Expand file tree Collapse file tree 8 files changed +114
-0
lines changed Expand file tree Collapse file tree 8 files changed +114
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # Copyright 2018 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 -eo pipefail
17
+
18
+ cd github/google-http-java-client/
19
+
20
+ # Print out Java
21
+ java -version
22
+ echo $JOB_TYPE
23
+
24
+ mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
25
+ mvn test -B
Original file line number Diff line number Diff line change
1
+ # Format: //devtools/kokoro/config/proto/build.proto
2
+
3
+ # Download trampoline resources. These will be in ${KOKORO_GFILE_DIR}
4
+ gfile_resources: " /bigstore/cloud-devrel-kokoro-resources/trampoline"
5
+
6
+ # All builds use the trampoline script to run in docker.
7
+ build_file: " google-http-java-client/.kokoro/trampoline.sh"
8
+
9
+ # Tell the trampoline which build file to use.
10
+ env_vars: {
11
+ key: " TRAMPOLINE_BUILD_FILE"
12
+ value: " github/google-http-java-client/.kokoro/build.sh"
13
+ }
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: " google-http-java-client/.kokoro/trampoline.sh"
15
+
16
+ env_vars: {
17
+ key: " TRAMPOLINE_BUILD_FILE"
18
+ value: " github/google-http-java-client/.kokoro/build.sh"
19
+ }
20
+
21
+ env_vars: {
22
+ key: " JOB_TYPE"
23
+ value: " test"
24
+ }
Original file line number Diff line number Diff line change
1
+ # Format: //devtools/kokoro/config/proto/build.proto
2
+
3
+ # Configure the docker image for kokoro-trampoline.
4
+ env_vars: {
5
+ key: " TRAMPOLINE_IMAGE"
6
+ value: " gcr.io/cloud-devrel-kokoro-resources/java10"
7
+ }
Original file line number Diff line number Diff line change
1
+ # Format: //devtools/kokoro/config/proto/build.proto
2
+
3
+ # Configure the docker image for kokoro-trampoline.
4
+ env_vars: {
5
+ key: " TRAMPOLINE_IMAGE"
6
+ value: " gcr.io/cloud-devrel-kokoro-resources/java7"
7
+ }
Original file line number Diff line number Diff line change
1
+ # Format: //devtools/kokoro/config/proto/build.proto
2
+
3
+ # Configure the docker image for kokoro-trampoline.
4
+ env_vars: {
5
+ key: " TRAMPOLINE_IMAGE"
6
+ value: " gcr.io/cloud-devrel-kokoro-resources/java8"
7
+ }
Original file line number Diff line number Diff line change
1
+ # Format: //devtools/kokoro/config/proto/build.proto
2
+
3
+ # Configure the docker image for kokoro-trampoline.
4
+ env_vars: {
5
+ key: " TRAMPOLINE_IMAGE"
6
+ value: " gcr.io/cloud-devrel-kokoro-resources/java9"
7
+ }
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # Copyright 2018 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
+ set -eo pipefail
16
+ # Always run the cleanup script, regardless of the success of bouncing into
17
+ # the container.
18
+ function cleanup() {
19
+ chmod +x ${KOKORO_GFILE_DIR} /trampoline_cleanup.sh
20
+ ${KOKORO_GFILE_DIR} /trampoline_cleanup.sh
21
+ echo " cleanup" ;
22
+ }
23
+ trap cleanup EXIT
24
+ python3 " ${KOKORO_GFILE_DIR} /trampoline_v1.py"
You can’t perform that action at this time.
0 commit comments