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.
This commit is contained in:
Chengyuan Zhang 2020-12-07 14:43:32 -08:00 committed by GitHub
parent f13471d68d
commit 71a3c55177
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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