[go: nahoru, domu]

Skip to content

Commit

Permalink
chore: add continuous tests against cloud-devel (#1094)
Browse files Browse the repository at this point in the history
* chore: add continuous tests against cloud-devel
  • Loading branch information
rajatbhatta committed Jan 12, 2023
1 parent 6388da2 commit 56aa79d
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .kokoro/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,20 @@ integration)
verify
RETURN_CODE=$?
;;
integration-cloud-devel)
mvn -B ${INTEGRATION_TEST_ARGS} \
-ntp \
-Penable-integration-tests \
-DtrimStackTrace=false \
-Dclirr.skip=true \
-Denforcer.skip=true \
-Dspanner.gce.config.server_url=https://staging-wrenchworks.sandbox.googleapis.com \
-Dspanner.testenv.instance=projects/span-cloud-testing/instances/spanner-testing-east1 \
-Dspanner.gce.config.project_id=span-cloud-testing \
-fae \
verify
RETURN_CODE=$?
;;
graalvm)
# Run Unit and Integration Tests with Native Image.
mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test "-Dtest=com.google.cloud.spanner.jdbc.it.**"
Expand Down
35 changes: 35 additions & 0 deletions .kokoro/continuous/integration-cloud-devel.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Build logs will be here
action {
define_artifacts {
regex: "**/*sponge_log.xml"
regex: "**/*sponge_log.txt"
}
}

# Download trampoline resources.
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Use the trampoline script to run in docker.
build_file: "java-spanner-jdbc/.kokoro/trampoline.sh"

env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/java-spanner-jdbc/.kokoro/build.sh"
}

env_vars: {
key: "JOB_TYPE"
value: "integration-cloud-devel"
}

env_vars: {
key: "GOOGLE_APPLICATION_CREDENTIALS"
value: "secret_manager/java-client-testing"
}

env_vars: {
key: "SECRET_MANAGER_KEYS"
value: "java-client-testing"
}

0 comments on commit 56aa79d

Please sign in to comment.