2021-10-08 05:08:09 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -u
|
|
|
|
set -o pipefail
|
|
|
|
|
2022-10-07 12:36:22 +00:00
|
|
|
ZERO="0000000000000000000000000000000000000000"
|
2021-10-08 05:08:09 +00:00
|
|
|
GRADLE_EXEC="${GRADLE_EXEC:-./gradlew}"
|
|
|
|
|
2022-10-21 06:32:23 +00:00
|
|
|
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
|
2021-11-01 05:41:53 +00:00
|
|
|
if [ "${local_oid}" != "${ZERO}" ]; then
|
2022-10-29 02:40:44 +00:00
|
|
|
"${GRADLE_EXEC}" metalavaCheckCompatibilityRelease detekt ktfmtCheck test -PslimTests
|
2021-11-01 05:41:53 +00:00
|
|
|
fi
|
|
|
|
done
|