chore: add bpapi check cut.sh
This commit is contained in:
parent
eb4a2ad4d5
commit
deece276be
|
@ -242,9 +242,24 @@ check_changelog() {
|
|||
fi
|
||||
}
|
||||
|
||||
if [ "$DRYRUN" = 'yes' ]; then
|
||||
logmsg "Release tag is ready to be created with command: git tag $TAG"
|
||||
else
|
||||
check_bpapi() {
|
||||
local fname
|
||||
case "$TAG" in
|
||||
*.0)
|
||||
fname="$(echo "$TAG" | sed 's/^e//; s/\.0$//')"
|
||||
fpath="apps/emqx/test/emqx_static_checks_data/${fname}.bpapi"
|
||||
logmsg "Checking $fpath"
|
||||
if [ ! -f "$fpath" ]; then
|
||||
logerr "BPAPI file missing: $fpath"
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
true
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
case "$TAG" in
|
||||
*rc*)
|
||||
true
|
||||
|
@ -256,12 +271,17 @@ else
|
|||
true
|
||||
;;
|
||||
e*)
|
||||
check_bpapi
|
||||
check_changelog
|
||||
;;
|
||||
v*)
|
||||
check_changelog
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ "$DRYRUN" = 'yes' ]; then
|
||||
logmsg "Release tag is ready to be created with command: git tag $TAG"
|
||||
else
|
||||
git tag "$TAG"
|
||||
logmsg "$TAG is created OK."
|
||||
logwarn "Don't forget to push the tag!"
|
||||
|
|
Loading…
Reference in New Issue