Skip to content

Commit

Permalink
Need more codes for Ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jul 29, 2022
1 parent ff986c0 commit 25a10c5
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions dev/release/verify-yum.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ have_glib=yes
have_parquet=yes
have_python=yes
have_ruby=yes
ruby_devel_packages=(ruby-devel)
install_command="dnf install -y --enablerepo=crb"
uninstall_command="dnf remove -y"
clean_command="dnf clean"
Expand All @@ -64,6 +65,7 @@ case "${distribution}-${distribution_version}" in
almalinux-8)
distribution_prefix="almalinux"
have_arrow_libs=yes
ruby_devel_packages+=(redhat-rpm-config)
install_command="dnf install -y --enablerepo=powertools"
info_command="dnf info --enablerepo=powertools"
;;
Expand Down Expand Up @@ -104,6 +106,7 @@ case "${distribution}-${distribution_version}" in
centos-8)
distribution_prefix="centos"
repository_version+="-stream"
ruby_devel_packages+=(redhat-rpm-config)
install_command="dnf install -y --enablerepo=powertools"
info_command="dnf info --enablerepo=powertools"
;;
Expand Down Expand Up @@ -221,24 +224,29 @@ if [ "${have_glib}" = "yes" ]; then
./build
popd

${install_command} ruby-devel
gem install gobject-introspection
ruby -r gi -e "p GI.load('Arrow')"

if [ "${have_ruby}" = "yes" ]; then
${install_command} "${ruby_devel_packages[@]}"
gem install gobject-introspection
ruby -r gi -e "p GI.load('Arrow')"
fi
echo "::endgroup::"
fi

if [ "${have_flight}" = "yes" ]; then
echo "::group::Test Apache Arrow Flight"
${install_command} --enablerepo=epel arrow-flight-glib-devel-${package_version}
${install_command} --enablerepo=epel arrow-flight-glib-doc-${package_version}
ruby -r gi -e "p GI.load('ArrowFlight')"
if [ "${have_ruby}" = "yes" ]; then
ruby -r gi -e "p GI.load('ArrowFlight')"
fi
echo "::endgroup::"

echo "::group::Test Apache Arrow Flight SQL"
${install_command} --enablerepo=epel arrow-flight-sql-glib-devel-${package_version}
${install_command} --enablerepo=epel arrow-flight-sql-glib-doc-${package_version}
ruby -r gi -e "p GI.load('ArrowFlightSQL')"
if [ "${have_ruby}" = "yes" ]; then
ruby -r gi -e "p GI.load('ArrowFlightSQL')"
fi
echo "::endgroup::"
fi

Expand All @@ -252,7 +260,9 @@ echo "::group::Test Plasma"
if [ "${have_glib}" = "yes" ]; then
${install_command} --enablerepo=epel plasma-glib-devel-${package_version}
${install_command} --enablerepo=epel plasma-glib-doc-${package_version}
ruby -r gi -e "p GI.load('Plasma')"
if [ "${have_ruby}" = "yes" ]; then
ruby -r gi -e "p GI.load('Plasma')"
fi
else
${install_command} --enablerepo=epel plasma-devel-${package_version}
fi
Expand All @@ -263,7 +273,9 @@ if [ "${have_gandiva}" = "yes" ]; then
if [ "${have_glib}" = "yes" ]; then
${install_command} --enablerepo=epel gandiva-glib-devel-${package_version}
${install_command} --enablerepo=epel gandiva-glib-doc-${package_version}
ruby -r gi -e "p GI.load('Gandiva')"
if [ "${have_ruby}" = "yes" ]; then
ruby -r gi -e "p GI.load('Gandiva')"
fi
else
${install_command} --enablerepo=epel gandiva-devel-${package_version}
fi
Expand All @@ -275,7 +287,9 @@ if [ "${have_parquet}" = "yes" ]; then
if [ "${have_glib}" = "yes" ]; then
${install_command} --enablerepo=epel parquet-glib-devel-${package_version}
${install_command} --enablerepo=epel parquet-glib-doc-${package_version}
ruby -r gi -e "p GI.load('Parquet')"
if [ "${have_ruby}" = "yes" ]; then
ruby -r gi -e "p GI.load('Parquet')"
fi
else
${install_command} --enablerepo=epel parquet-devel-${package_version}
fi
Expand Down

0 comments on commit 25a10c5

Please sign in to comment.