Skip to content

Apache DataFusion SQL Query Engine

ARROW-631: [GLib] Import

Kouhei Sutoub6e601f0b26f
diff --git a/.travis.yml b/.travis.yml
index e8d91045c2..b219b03e0e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,6 +16,9 @@ addons:
- libboost-filesystem-dev
- libboost-system-dev
- libjemalloc-dev
+ - gtk-doc-tools
+ - autoconf-archive
+ - libgirepository1.0-dev
matrix:
fast_finish: true
@@ -30,9 +33,11 @@ matrix:
- export CC="gcc-4.9"
- export CXX="g++-4.9"
- $TRAVIS_BUILD_DIR/ci/travis_before_script_cpp.sh
+ - $TRAVIS_BUILD_DIR/ci/travis_before_script_c_glib.sh
script:
- $TRAVIS_BUILD_DIR/ci/travis_script_cpp.sh
- $TRAVIS_BUILD_DIR/ci/travis_script_python.sh
+ - $TRAVIS_BUILD_DIR/ci/travis_script_c_glib.sh
- compiler: clang
osx_image: xcode6.4
os: osx
diff --git a/ci/travis_before_script_c_glib.sh b/ci/travis_before_script_c_glib.sh
new file mode 100755
index 0000000000..1a828e7659
--- /dev/null
+++ b/ci/travis_before_script_c_glib.sh
@@ -0,0 +1,40 @@
+#!/usr/bin/env bash
+
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License. See accompanying LICENSE file.
+
+
+set -ex
+
+if [ $TRAVIS_OS_NAME == "osx" ]; then
+ brew install gtk-doc autoconf-archive gobject-introspection
+fi
+
+gem install gobject-introspection
+
+ARROW_C_GLIB_DIR=$TRAVIS_BUILD_DIR/c_glib
+
+pushd $ARROW_C_GLIB_DIR
+
+: ${ARROW_C_GLIB_INSTALL=$TRAVIS_BUILD_DIR/c-glib-install}
+
+./autogen.sh
+
+export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$ARROW_CPP_INSTALL/lib/pkgconfig
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ARROW_CPP_INSTALL/lib
+
+./configure --prefix=${ARROW_C_GLIB_INSTALL} --enable-gtk-doc
+
+make -j4
+make install
+
+popd
diff --git a/ci/travis_script_c_glib.sh b/ci/travis_script_c_glib.sh
new file mode 100755
index 0000000000..1492354405
--- /dev/null
+++ b/ci/travis_script_c_glib.sh
@@ -0,0 +1,24 @@
+#!/usr/bin/env bash
+
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License. See accompanying LICENSE file.
+
+set -e
+
+ARROW_C_GLIB_DIR=$TRAVIS_BUILD_DIR/c_glib
+
+pushd $ARROW_C_GLIB_DIR
+
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ARROW_CPP_INSTALL/lib
+NO_MAKE=yes test/run-test.sh
+
+popd