Skip to content

Apache DataFusion SQL Query Engine

ARROW-3692: [Gandiva][Ruby] Add Ruby bindings of Gandiva

Yosuke Shiro1c1964908955
diff --git a/.travis.yml b/.travis.yml
index 4635711ad9..f6f499c897 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -248,6 +248,7 @@ matrix:
os: osx
env:
- ARROW_TRAVIS_ORC=1
+ - ARROW_TRAVIS_GANDIVA=1
- ARROW_TRAVIS_PARQUET=1
cache:
addons:
diff --git a/ci/travis_before_script_cpp.sh b/ci/travis_before_script_cpp.sh
index 3a8799e642..c9e60e6a2a 100755
--- a/ci/travis_before_script_cpp.sh
+++ b/ci/travis_before_script_cpp.sh
@@ -119,6 +119,7 @@ else
if [ "$using_homebrew" = "yes" ]; then
# build against homebrew's boost if we're using it
export BOOST_ROOT=$(brew --prefix boost)
+ export LLVM_DIR=$(brew --prefix llvm@6)/lib/cmake/llvm
export THRIFT_HOME=$(brew --prefix thrift)
fi
cmake $CMAKE_COMMON_FLAGS \
diff --git a/ci/travis_script_ruby.sh b/ci/travis_script_ruby.sh
index 38e42d1d00..b01cf3a012 100755
--- a/ci/travis_script_ruby.sh
+++ b/ci/travis_script_ruby.sh
@@ -52,6 +52,15 @@ popd
# fi
# popd
+pushd $ARROW_RUBY_DIR/red-gandiva
+(arrow_ruby_run_test $ARROW_C_GLIB_INSTALL_AUTOTOOLS/lib)
+if [ -d $ARROW_C_GLIB_INSTALL_MESON/lib/$(arch)-linux-gnu ]; then
+ (arrow_ruby_run_test $ARROW_C_GLIB_INSTALL_MESON/lib/$(arch)-linux-gnu)
+# else # TODO: Enable this
+# (arrow_ruby_run_test $ARROW_C_GLIB_INSTALL_MESON/lib)
+fi
+popd
+
pushd $ARROW_RUBY_DIR/red-parquet
(arrow_ruby_run_test $ARROW_C_GLIB_INSTALL_AUTOTOOLS/lib)
if [ -d $ARROW_C_GLIB_INSTALL_MESON/lib/$(arch)-linux-gnu ]; then