You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/bin/sh
|
|
|
|
SCRIPT=$(readlink -f "$0")
|
|
|
|
CWD=$(dirname "$SCRIPT")
|
|
|
|
|
|
|
|
# make dir that is used in sphinx config
|
|
|
|
mkdir -p sphinx
|
|
|
|
sed -i s\~SPHINX_BASE_DIR~$PWD/sphinx~g $CWD/../sphinx/sphinx.conf
|
|
|
|
|
|
|
|
# Setup source database
|
|
|
|
mysql -D yiitest -u travis < $CWD/../sphinx/source.sql
|
|
|
|
|
|
|
|
# setup test Sphinx indexes:
|
|
|
|
indexer --config $CWD/../sphinx/sphinx.conf --all
|
|
|
|
|
|
|
|
# run searchd:
|
|
|
|
searchd --config $CWD/../sphinx/sphinx.conf
|