2021-10-08 05:08:09 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
set -u
|
|
|
|
set -o pipefail
|
|
|
|
|
2021-11-01 05:41:53 +00:00
|
|
|
ZERO=$(git hash-object --stdin </dev/null | tr '[0-9a-f]' '0')
|
2021-10-08 05:08:09 +00:00
|
|
|
GRADLE_EXEC="${GRADLE_EXEC:-./gradlew}"
|
|
|
|
|
2021-11-01 05:41:53 +00:00
|
|
|
while read local_ref local_oid remote_ref remote_oid; do
|
|
|
|
if [ "${local_oid}" != "${ZERO}" ]; then
|
2022-01-09 09:46:51 +00:00
|
|
|
"${GRADLE_EXEC}" spotlessCheck apiCheck test -PslimTests
|
2021-11-01 05:41:53 +00:00
|
|
|
fi
|
|
|
|
done
|