Migrate to Metalava for validating API (#2195)

This commit is contained in:
Harsh Shandilya 2022-10-21 12:02:23 +05:30 committed by GitHub
parent 7f90d827ae
commit df764932f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 182 additions and 173 deletions

View file

@ -7,8 +7,12 @@ set -o pipefail
ZERO="0000000000000000000000000000000000000000"
GRADLE_EXEC="${GRADLE_EXEC:-./gradlew}"
while read local_ref local_oid remote_ref remote_oid; do
while read -r local_ref local_oid remote_ref remote_oid; do
# These useless assignments are to silence warnings from shellcheck about unused variables
_=$local_ref
_=$remote_ref
_=$remote_oid
if [ "${local_oid}" != "${ZERO}" ]; then
"${GRADLE_EXEC}" apiCheck detekt spotlessCheck test -PslimTests
"${GRADLE_EXEC}" metalavaCheckCompatibilityRelease detekt spotlessCheck test -PslimTests
fi
done