Navigation Menu

Skip to content

Commit

Permalink
travis: bundle Groonga and groonga-normalizer-mysql for MariaDB bundl…
Browse files Browse the repository at this point in the history
…ed test
  • Loading branch information
kou committed Mar 26, 2015
1 parent 4f4c968 commit 3d32ec6
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions tools/travis/install.sh
Expand Up @@ -24,14 +24,6 @@ mariadb_download_base=http://mirror.jmu.edu/pub/mariadb
# export GROONGA_MASTER=yes
export GROONGA_NORMALIZER_MYSQL_MASTER=yes

curl --silent --location https://github.com/groonga/groonga/raw/master/data/travis/setup.sh | sh
curl --silent --location https://github.com/groonga/groonga-normalizer-mysql/raw/master/data/travis/setup.sh | sh
# curl --silent --location https://github.com/clear-code/cutter/raw/master/data/travis/setup.sh | sh

if [ ! -f /usr/lib/groonga/plugins/tokenizers/mecab.so ]; then
sudo apt-get -qq -y install groonga-tokenizer-mecab
fi

if [ "${MROONGA_BUNDLED}" = "yes" ]; then
mkdir -p .mroonga
mv * .mroonga/
Expand All @@ -46,7 +38,24 @@ if [ "${MROONGA_BUNDLED}" = "yes" ]; then
rm -rf storage/mroonga
mv .mroonga storage/mroonga
rm -rf ${MYSQL_VERSION}
git clone --recursive --depth 1 \
https://github.com/groonga/groonga.git \
storage/mroonga/vendor/groonga
git clone --recursive --depth 1 \
https://github.com/groonga/groonga-normalizer-mysql.git \
storage/mroonga/vendor/groonga/vendor/plugins/groonga-normalizer-mysql
else
curl --silent --location \
https://github.com/groonga/groonga/raw/master/data/travis/setup.sh | sh
curl --silent --location \
https://github.com/groonga/groonga-normalizer-mysql/raw/master/data/travis/setup.sh | sh
# curl --silent --location \
# https://github.com/clear-code/cutter/raw/master/data/travis/setup.sh | sh

if [ ! -f /usr/lib/groonga/plugins/tokenizers/mecab.so ]; then
sudo apt-get -qq -y install groonga-tokenizer-mecab
fi

mkdir -p vendor
cd vendor

Expand Down

0 comments on commit 3d32ec6

Please sign in to comment.