summaryrefslogtreecommitdiffstats
path: root/storage/mroonga/vendor/groonga/tools/travis-install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'storage/mroonga/vendor/groonga/tools/travis-install.sh')
-rwxr-xr-xstorage/mroonga/vendor/groonga/tools/travis-install.sh38
1 files changed, 38 insertions, 0 deletions
diff --git a/storage/mroonga/vendor/groonga/tools/travis-install.sh b/storage/mroonga/vendor/groonga/tools/travis-install.sh
new file mode 100755
index 00000000..d7ac400c
--- /dev/null
+++ b/storage/mroonga/vendor/groonga/tools/travis-install.sh
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+set -e
+set -u
+
+: ${ENABLE_MRUBY:=no}
+
+case "${TRAVIS_OS_NAME}" in
+ linux)
+ curl --silent --location https://raw.github.com/clear-code/cutter/master/data/travis/setup.sh | sh
+ sudo apt-get install -qq -y \
+ autotools-dev \
+ autoconf-archive \
+ zlib1g-dev \
+ libmsgpack-dev \
+ libevent-dev \
+ libmecab-dev \
+ mecab-naist-jdic \
+ cmake
+ ;;
+ osx)
+ brew update > /dev/null
+ brew outdated pkg-config || brew upgrade pkg-config
+ brew reinstall libtool
+ brew outdated libevent || brew upgrade libevent
+ brew install \
+ autoconf-archive \
+ msgpack \
+ mecab \
+ mecab-ipadic
+ brew install --force openssl
+ # brew install cutter
+ ;;
+esac
+
+if [ "${ENABLE_MRUBY}" = "yes" ]; then
+ gem install pkg-config groonga-client test-unit
+fi