Migrate to Metalava for validating API (#2195)
This commit is contained in:
parent
7f90d827ae
commit
df764932f7
12 changed files with 182 additions and 173 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue