diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 770351b4..208842d2 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -103,6 +103,30 @@ samples) echo "no sample pom.xml found - skipping sample tests" fi ;; +tutorials-samples) + SAMPLES_DIR=samples/interactive-tutorials + + if [[ -f ${SAMPLES_DIR}/pom.xml ]] + then + for FILE in ${KOKORO_GFILE_DIR}/secret_manager/*-samples-secrets; do + [[ -f "$FILE" ]] || continue + source "$FILE" + done + + pushd ${SAMPLES_DIR} + mvn -B \ + -ntp \ + -DtrimStackTrace=false \ + -Dclirr.skip=true \ + -Denforcer.skip=true \ + -fae \ + verify + RETURN_CODE=$? + popd + else + echo "no interactive-tutorials pom.xml found - skipping interactive-tutorials tests" + fi + ;; clirr) mvn -B -ntp -Denforcer.skip=true clirr:check RETURN_CODE=$? diff --git a/pom.xml b/pom.xml index b0f08486..27373884 100644 --- a/pom.xml +++ b/pom.xml @@ -106,7 +106,6 @@ grpc-google-cloud-retail-v2 proto-google-cloud-retail-v2 google-cloud-retail-bom - samples @@ -178,4 +177,4 @@ - \ No newline at end of file + diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index bbeab790..b83788be 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -12,9 +12,9 @@ Removing or replacing it should not affect the execution of the samples in anyway. --> - com.google.cloud - google-cloud-retail-samples - 0.0.1-SNAPSHOT + com.google.cloud.samples + shared-configuration + 1.2.0 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index e55b7276..acff7188 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -12,9 +12,9 @@ Removing or replacing it should not affect the execution of the samples in anyway. --> - com.google.cloud - google-cloud-retail-samples - 0.0.1-SNAPSHOT + com.google.cloud.samples + shared-configuration + 1.2.0 @@ -44,4 +44,4 @@ test - \ No newline at end of file +