From 71a3c551777055ee4fe214894cc469ff51e1f46a Mon Sep 17 00:00:00 2001 From: Chengyuan Zhang Date: Mon, 7 Dec 2020 14:43:32 -0800 Subject: [PATCH] buildscripts: add missing CI coverage for examples (#7708) Adds CI coverage for building example/android/strictmode and examples/example-jwt-auth. Also cleans up existing Gradle and Maven build command in the CIs. --- buildscripts/kokoro/android.sh | 2 ++ buildscripts/kokoro/unix.sh | 9 +++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/buildscripts/kokoro/android.sh b/buildscripts/kokoro/android.sh index 5f8a783585..c94a854959 100755 --- a/buildscripts/kokoro/android.sh +++ b/buildscripts/kokoro/android.sh @@ -61,6 +61,8 @@ cd ../routeguide ../../gradlew build cd ../helloworld ../../gradlew build +cd ../strictmode +../../gradlew build # Skip APK size and dex count comparisons for non-PR builds diff --git a/buildscripts/kokoro/unix.sh b/buildscripts/kokoro/unix.sh index 353717e336..faa9a6afe1 100755 --- a/buildscripts/kokoro/unix.sh +++ b/buildscripts/kokoro/unix.sh @@ -62,14 +62,19 @@ if [[ -z "${SKIP_TESTS:-}" ]]; then ./gradlew clean $GRADLE_FLAGS ./gradlew build $GRADLE_FLAGS # --batch-mode reduces log spam - mvn clean verify --batch-mode + mvn verify --batch-mode popd pushd examples/example-hostname ../gradlew build $GRADLE_FLAGS mvn verify --batch-mode popd pushd examples/example-tls - mvn clean verify --batch-mode + ../gradlew build $GRADLE_FLAGS + mvn verify --batch-mode + popd + pushd examples/example-jwt-auth + ../gradlew build $GRADLE_FLAGS + mvn verify --batch-mode popd pushd examples/example-xds ../gradlew build $GRADLE_FLAGS