Skip to content
This repository was archived by the owner on Dec 3, 2023. It is now read-only.

Commit 13a0839

Browse files
chore: update common templates
1 parent 15c7b02 commit 13a0839

File tree

7 files changed

+49
-25
lines changed

7 files changed

+49
-25
lines changed

.kokoro/build.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ case ${JOB_TYPE} in
4444
test)
4545
mvn test -B -Dclirr.skip=true -Denforcer.skip=true
4646
RETURN_CODE=$?
47-
bash ${KOKORO_GFILE_DIR}/codecov.sh
4847
;;
4948
lint)
5049
mvn \
@@ -91,6 +90,11 @@ clirr)
9190
;;
9291
esac
9392

93+
if [ "${REPORT_COVERAGE}" == "true" ]
94+
then
95+
bash ${KOKORO_GFILE_DIR}/codecov.sh
96+
fi
97+
9498
# fix output location of logs
9599
bash .kokoro/coerce_logs.sh
96100

@@ -101,4 +105,4 @@ then
101105
fi
102106

103107
echo "exiting with ${RETURN_CODE}"
104-
exit ${RETURN_CODE}
108+
exit ${RETURN_CODE}

.kokoro/continuous/java8.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@ env_vars: {
55
key: "TRAMPOLINE_IMAGE"
66
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
77
}
8+
9+
env_vars: {
10+
key: "REPORT_COVERAGE"
11+
value: "true"
12+
}

.kokoro/nightly/integration.cfg

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,17 @@ env_vars: {
55
key: "TRAMPOLINE_IMAGE"
66
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
77
}
8+
9+
env_vars: {
10+
key: "ENABLE_BUILD_COP"
11+
value: "true"
12+
}
13+
14+
before_action {
15+
fetch_keystore {
16+
keystore_resource {
17+
keystore_config_id: 73713
18+
keyname: "java_it_service_account"
19+
}
20+
}
21+
}

.kokoro/nightly/java8.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@ env_vars: {
55
key: "TRAMPOLINE_IMAGE"
66
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
77
}
8+
9+
env_vars: {
10+
key: "REPORT_COVERAGE"
11+
value: "true"
12+
}

.kokoro/nightly/samples.cfg

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,28 @@
22

33
# Configure the docker image for kokoro-trampoline.
44
env_vars: {
5-
key: "TRAMPOLINE_IMAGE"
6-
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
5+
key: "TRAMPOLINE_IMAGE"
6+
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
77
}
88

99
env_vars: {
10-
key: "JOB_TYPE"
11-
value: "samples"
10+
key: "JOB_TYPE"
11+
value: "samples"
1212
}
1313

1414
env_vars: {
15-
key: "GCLOUD_PROJECT"
16-
value: "gcloud-devel"
15+
key: "GCLOUD_PROJECT"
16+
value: "gcloud-devel"
1717
}
1818

1919
env_vars: {
20-
key: "GOOGLE_APPLICATION_CREDENTIALS"
21-
value: "keystore/73713_java_it_service_account"
20+
key: "GOOGLE_APPLICATION_CREDENTIALS"
21+
value: "keystore/73713_java_it_service_account"
22+
}
23+
24+
env_vars: {
25+
key: "ENABLE_BUILD_COP"
26+
value: "true"
2227
}
2328

2429
before_action {

.kokoro/presubmit/java8.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@ env_vars: {
55
key: "TRAMPOLINE_IMAGE"
66
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
77
}
8+
9+
env_vars: {
10+
key: "REPORT_COVERAGE"
11+
value: "true"
12+
}

synth.metadata

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,6 @@
11
{
2-
"updateTime": "2020-02-22T10:15:46.136111Z",
2+
"updateTime": "2020-02-24T23:14:57.546329Z",
33
"sources": [
4-
{
5-
"git": {
6-
"name": ".",
7-
"remote": "https://github.com/googleapis/java-core.git",
8-
"sha": "b8838eb5d76c7f64a579113f6622e1314af3cd1e"
9-
}
10-
},
11-
{
12-
"git": {
13-
"name": "synthtool",
14-
"remote": "rpc://devrel/cloud/libraries/tools/autosynth",
15-
"sha": "706a38c26db42299845396cdae55db635c38794a"
16-
}
17-
},
184
{
195
"template": {
206
"name": "java_library",

0 commit comments

Comments
 (0)