ci: test rpm install with yum

This commit is contained in:
Zaiming (Stone) Shi 2022-01-04 17:40:00 +01:00
parent 7759d94d6b
commit 03c8d35480
1 changed files with 2 additions and 7 deletions

View File

@ -125,13 +125,8 @@ emqx_test(){
fi
;;
"rpm")
if [[ "${ARCH}" == "amd64" && $(rpm -E '%{rhel}') == 7 ]] ; then
# EMQX OTP requires openssl11 to have TLS1.3 support
yum install -y openssl11
fi
rpm -ivh "${PACKAGE_PATH}/${packagename}"
if ! rpm -q emqx | grep -q emqx; then
yum install -y "${PACKAGE_PATH}/${packagename}"
if ! rpm -q ${EMQX_NAME} | grep -q "${EMQX_NAME}"; then
echo "package install error"
exit 1
fi