2020-06-11 10:50:32 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
|
|
|
|
source ci/_
|
|
|
|
|
2020-06-14 02:15:46 -07:00
|
|
|
(
|
2020-06-14 05:24:10 -07:00
|
|
|
echo --- git diff --check
|
2020-06-14 02:15:46 -07:00
|
|
|
set -x
|
2020-11-09 15:03:44 -08:00
|
|
|
|
|
|
|
if [[ -n $CI_BASE_BRANCH ]]
|
|
|
|
then branch="$CI_BASE_BRANCH"
|
|
|
|
else branch="master"
|
|
|
|
fi
|
|
|
|
|
2020-06-14 02:15:46 -07:00
|
|
|
# Look for failed mergify.io backports by searching leftover conflict markers
|
|
|
|
# Also check for any trailing whitespaces!
|
2020-11-09 15:03:44 -08:00
|
|
|
git fetch origin "$branch"
|
|
|
|
git diff "$(git merge-base HEAD "origin/$branch")" --check --oneline
|
2020-06-14 02:15:46 -07:00
|
|
|
)
|
2020-06-11 10:50:32 -07:00
|
|
|
|
2020-06-14 05:16:19 -07:00
|
|
|
echo
|
|
|
|
|
2022-09-23 09:09:45 -07:00
|
|
|
_ ci/check-channel-version.sh
|
2020-06-11 10:50:32 -07:00
|
|
|
_ ci/nits.sh
|
|
|
|
_ ci/check-ssh-keys.sh
|
|
|
|
|
|
|
|
echo --- ok
|