Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ addons:
- gtk-doc-tools
- autoconf-archive
- libgirepository1.0-dev
- gir1.2-gudev-1.0
services:
- docker

Expand Down Expand Up @@ -91,6 +90,17 @@ matrix:
- $TRAVIS_BUILD_DIR/ci/travis_before_script_c_glib.sh
script:
- $TRAVIS_BUILD_DIR/ci/travis_script_c_glib.sh
- compiler: clang
osx_image: xcode6.4
os: osx
cache:
addons:
rvm: 2.2
before_script:
- $TRAVIS_BUILD_DIR/ci/travis_before_script_cpp.sh --only-library
- $TRAVIS_BUILD_DIR/ci/travis_before_script_c_glib.sh
script:
- $TRAVIS_BUILD_DIR/ci/travis_script_c_glib.sh

before_install:
- ulimit -c unlimited -S
Expand Down
42 changes: 28 additions & 14 deletions ci/travis_before_script_c_glib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,38 @@ source $TRAVIS_BUILD_DIR/ci/travis_env_common.sh

if [ $TRAVIS_OS_NAME == "osx" ]; then
brew install gtk-doc autoconf-archive gobject-introspection
brew upgrade git cmake wget libtool

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/opt/libffi/lib/pkgconfig
fi

gem install gobject-introspection

git clone \
--quiet \
--depth 1 \
--recursive \
https://github.com/torch/distro.git ~/torch
pushd ~/torch
./install-deps > /dev/null
echo "yes" | ./install.sh > /dev/null
. ~/torch/install/bin/torch-activate
popd
gem install test-unit gobject-introspection

if [ $TRAVIS_OS_NAME == "osx" ]; then
brew install lua
else
git clone \
--quiet \
--depth 1 \
--recursive \
https://github.com/torch/distro.git ~/torch
pushd ~/torch
./install-deps > /dev/null
echo "yes" | ./install.sh > /dev/null
. ~/torch/install/bin/torch-activate
popd
fi
luarocks install lgi

go get github.com/linuxdeepin/go-gir-generator || :
pushd $GOPATH/src/github.com/linuxdeepin/go-gir-generator
mv Makefile{,.orig}
sed -e 's/ gudev-1.0//' Makefile.orig > Makefile
mkdir -p out/src/gir/gudev-1.0
make build copyfile
mkdir -p $GOPATH/bin/
cp -a out/gir-generator $GOPATH/bin/
cp -a out/src/gir/ $GOPATH/src/
cp -a out/src/gir/ $GOPATH/src/gir/
popd

pushd $ARROW_C_GLIB_DIR
Expand All @@ -50,7 +60,11 @@ pushd $ARROW_C_GLIB_DIR
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
CONFIGURE_OPTIONS="--prefix=$ARROW_C_GLIB_INSTALL"
if [ $TRAVIS_OS_NAME != "osx" ]; then
CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS --enable-gtk-doc"
fi
./configure $CONFIGURE_OPTIONS

make -j4
make install
Expand Down
4 changes: 4 additions & 0 deletions ci/travis_env_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ export ARROW_INTEGRATION_DIR=$TRAVIS_BUILD_DIR/integration
export ARROW_CPP_INSTALL=$TRAVIS_BUILD_DIR/cpp-install
export ARROW_CPP_BUILD_DIR=$TRAVIS_BUILD_DIR/cpp-build
export ARROW_C_GLIB_INSTALL=$TRAVIS_BUILD_DIR/c-glib-install

if [ $TRAVIS_OS_NAME == "osx" ]; then
export GOPATH=$TRAVIS_BUILD_DIR/gopath
fi
19 changes: 13 additions & 6 deletions ci/travis_script_c_glib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,19 @@ export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$ARROW_CPP_INSTALL/lib/pkgconfig
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$ARROW_C_GLIB_INSTALL/lib/pkgconfig

pushd example/lua
. ~/torch/install/bin/torch-activate
luajit write-batch.lua
luajit read-batch.lua
luajit write-stream.lua
luajit read-stream.lua
luajit stream-to-torch-tensor.lua
if [ $TRAVIS_OS_NAME == "osx" ]; then
lua write-batch.lua
lua read-batch.lua
lua write-stream.lua
lua read-stream.lua
else
. ~/torch/install/bin/torch-activate
luajit write-batch.lua
luajit read-batch.lua
luajit write-stream.lua
luajit read-stream.lua
luajit stream-to-torch-tensor.lua
fi
popd

pushd example/go
Expand Down