Skip to content

Commit 78f2ea5

Browse files
authored
test: nightly/continuous ITs against cloud-staging (#1099)
1 parent 218c758 commit 78f2ea5

File tree

3 files changed

+93
-0
lines changed

3 files changed

+93
-0
lines changed

.kokoro/build.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,20 @@ integration-cloud-devel)
8383
verify
8484
RETURN_CODE=$?
8585
;;
86+
integration-cloud-staging)
87+
mvn -B ${INTEGRATION_TEST_ARGS} \
88+
-ntp \
89+
-Penable-integration-tests \
90+
-DtrimStackTrace=false \
91+
-Dclirr.skip=true \
92+
-Denforcer.skip=true \
93+
-Dspanner.gce.config.server_url=https://preprod-spanner.sandbox.googleapis.com \
94+
-Dspanner.testenv.instance=projects/span-cloud-testing/instances/spanner-testing \
95+
-Dspanner.gce.config.project_id=span-cloud-testing \
96+
-fae \
97+
verify
98+
RETURN_CODE=$?
99+
;;
86100
graalvm)
87101
# Run Unit and Integration Tests with Native Image.
88102
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test "-Dtest=com.google.cloud.spanner.jdbc.it.**"
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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+
regex: "**/*sponge_log.txt"
8+
}
9+
}
10+
11+
# Download trampoline resources.
12+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"
13+
14+
# Use the trampoline script to run in docker.
15+
build_file: "java-spanner-jdbc/.kokoro/trampoline.sh"
16+
17+
env_vars: {
18+
key: "TRAMPOLINE_BUILD_FILE"
19+
value: "github/java-spanner-jdbc/.kokoro/build.sh"
20+
}
21+
22+
env_vars: {
23+
key: "JOB_TYPE"
24+
value: "integration-cloud-staging"
25+
}
26+
27+
env_vars: {
28+
key: "GOOGLE_APPLICATION_CREDENTIALS"
29+
value: "secret_manager/java-client-testing"
30+
}
31+
32+
env_vars: {
33+
key: "SECRET_MANAGER_KEYS"
34+
value: "java-client-testing"
35+
}
36+
37+
# Configure the docker image for kokoro-trampoline.
38+
env_vars: {
39+
key: "TRAMPOLINE_IMAGE"
40+
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
41+
}
42+
43+
env_vars: {
44+
key: "REPORT_COVERAGE"
45+
value: "true"
46+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
}
8+
9+
env_vars: {
10+
key: "JOB_TYPE"
11+
value: "integration-cloud-staging"
12+
}
13+
14+
# TODO: remove this after we've migrated all tests and scripts
15+
env_vars: {
16+
key: "GCLOUD_PROJECT"
17+
value: "span-cloud-testing"
18+
}
19+
20+
env_vars: {
21+
key: "GOOGLE_CLOUD_PROJECT"
22+
value: "span-cloud-testing"
23+
}
24+
25+
env_vars: {
26+
key: "GOOGLE_APPLICATION_CREDENTIALS"
27+
value: "secret_manager/java-client-testing"
28+
}
29+
30+
env_vars: {
31+
key: "SECRET_MANAGER_KEYS"
32+
value: "java-client-testing"
33+
}

0 commit comments

Comments
 (0)