2020-06-11 10:50:32 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
|
|
|
|
source ci/_
|
|
|
|
|
2020-06-14 18:15:46 +09:00
|
|
|
echo --- prepare git show --check
|
|
|
|
|
|
|
|
(
|
|
|
|
set -x
|
|
|
|
# Look for failed mergify.io backports by searching leftover conflict markers
|
|
|
|
# Also check for any trailing whitespaces!
|
|
|
|
if [[ -n $BUILDKITE_PULL_REQUEST_BASE_BRANCH ]]; then
|
|
|
|
base_branch=$BUILDKITE_PULL_REQUEST_BASE_BRANCH
|
|
|
|
else
|
|
|
|
base_branch=$BUILDKITE_BRANCH
|
|
|
|
fi
|
|
|
|
_ git fetch origin "$base_branch"
|
|
|
|
_ git show "$(git merge-base HEAD "origin/$base_branch")..HEAD" --check --oneline
|
|
|
|
)
|
2020-06-11 10:50:32 -07:00
|
|
|
|
|
|
|
_ ci/nits.sh
|
|
|
|
_ ci/check-ssh-keys.sh
|
|
|
|
|
|
|
|
echo --- ok
|