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-07-17 08:24:51 +00:00
|
|
|
"${GRADLE_EXEC}" apiCheck detekt spotlessCheck test -PslimTests
|
2021-11-01 05:41:53 +00:00
|
|
|
fi
|
|
|
|
done
|