summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2022-10-21 12:02:23 +0530
committerGitHub <noreply@github.com>2022-10-21 06:32:23 +0000
commitdf764932f7fdddea9cea5937c6053a95797d35df (patch)
treea24e108f9584c60b4f6e18717af4269cbb49c91b /scripts
parent7f90d827ae436fe74ce5d3cabb9f1b091462b657 (diff)
Migrate to Metalava for validating API (#2195)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/pre-push-hook.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/pre-push-hook.sh b/scripts/pre-push-hook.sh
index 9cfbc9e1..6580b9c7 100644
--- a/scripts/pre-push-hook.sh
+++ b/scripts/pre-push-hook.sh
@@ -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