diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 750b4915792..421141c76be 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -86,6 +86,22 @@ integration) verify RETURN_CODE=$? ;; +integration-staging) + mvn -B ${INTEGRATION_TEST_ARGS} \ + -ntp \ + -Penable-integration-tests \ + -Djava.net.preferIPv4Stack=true \ + -DtrimStackTrace=false \ + -Dclirr.skip=true \ + -Denforcer.skip=true \ + -Dmaven.main.skip=true \ + -Dspanner.gce.config.server_url=https://staging-wrenchworks.sandbox.googleapis.com \ + -Dspanner.testenv.instance=projects/span-cloud-testing/instances/gaurav-test-instance \ + -Dspanner.gce.config.project_id=span-cloud-testing + -fae \ + verify + RETURN_CODE=$? + ;; graalvm) # Run Unit and Integration Tests with Native Image mvn test -Pnative -Penable-integration-tests diff --git a/.kokoro/nightly/integration-staging.cfg b/.kokoro/nightly/integration-staging.cfg new file mode 100644 index 00000000000..ea89f65a3a6 --- /dev/null +++ b/.kokoro/nightly/integration-staging.cfg @@ -0,0 +1,32 @@ +# 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" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration-staging" +} +# 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-it-service-account" +} + +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "java-it-service-account" +}