Commit a2cfc6b4 by Qiang Xue

Merge pull request #1341 from pmoust/sphinx

[Test] [WIP] Sphinx support on Travis
parents 7fa3b699 12fe9292
......@@ -18,6 +18,7 @@ before_script:
- tests/unit/data/travis/apc-setup.sh
- tests/unit/data/travis/memcache-setup.sh
- tests/unit/data/travis/cubrid-setup.sh
- tests/unit/data/travis/sphinx-setup.sh
#script:
# - phpunit --coverage-clover tests/unit/runtime/coveralls/clover.xml --verbose --exclude-group mssql,oci,wincache,xcache,zenddata,vendor,sphinx
......
......@@ -42,7 +42,7 @@ return [
'sphinx' => [
'sphinx' => [
'dsn' => 'mysql:host=127.0.0.1;port=9306;',
'username' => '',
'username' => 'travis',
'password' => '',
],
'db' => [
......
......@@ -14,9 +14,9 @@ source yii2_test_article_src
type = mysql
sql_host = localhost
sql_user =
sql_user = travis
sql_pass =
sql_db = yii2test
sql_db = yiitest
sql_port = 3306 # optional, default is 3306
sql_query = \
......@@ -37,7 +37,7 @@ source yii2_test_item_src
type = mysql
sql_host = localhost
sql_user =
sql_user = travis
sql_pass =
sql_db = yii2test
sql_port = 3306 # optional, default is 3306
......
#!/bin/sh
SCRIPT=$(readlink -f "$0")
CWD=$(dirname "$SCRIPT")
# install sphinxsearch:
echo 'yes' | sudo add-apt-repository ppa:builds/sphinxsearch-daily
sudo apt-get update
sudo apt-get install sphinxsearch
# log files
sudo mkdir /var/log/sphinx
sudo touch /var/log/sphinx/searchd.log
sudo touch /var/log/sphinx/query.log
sudo chmod -R 777 /var/log/sphinx # ugly (for travis)
# spl dir
sudo mkdir /var/lib/sphinx
sudo chmod 777 /var/lib/sphinx # ugly (for travis)
# setup test Sphinx indexes:
indexer --config $CWD/../sphinx/sphinx.conf --all
# run searchd:
searchd --config $CWD/../sphinx/sphinx.conf
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment