Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
e648aef7
Commit
e648aef7
authored
Aug 28, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sphinx setup without sudo
parent
9174358f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
10 deletions
+14
-10
sphinx.conf
tests/unit/data/sphinx/sphinx.conf
+8
-8
cubrid-setup.sh
tests/unit/data/travis/cubrid-setup.sh
+2
-2
sphinx-setup.sh
tests/unit/data/travis/sphinx-setup.sh
+4
-0
No files found.
tests/unit/data/sphinx/sphinx.conf
View file @
e648aef7
...
...
@@ -68,7 +68,7 @@ source yii2_test_item_delta_src : yii2_test_item_src
index
yii2_test_article_index
{
source
=
yii2_test_article_src
path
=
/
var
/
lib
/
sphinx
/
yii2_test_article
path
=
SPHINX_BASE_DIR
/
yii2_test_article
docinfo
=
extern
charset_type
=
sbcs
}
...
...
@@ -77,7 +77,7 @@ index yii2_test_article_index
index
yii2_test_item_index
{
source
=
yii2_test_item_src
path
=
/
var
/
lib
/
sphinx
/
yii2_test_item
path
=
SPHINX_BASE_DIR
/
yii2_test_item
docinfo
=
extern
charset_type
=
sbcs
}
...
...
@@ -86,14 +86,14 @@ index yii2_test_item_index
index
yii2_test_item_delta_index
:
yii2_test_item_index
{
source
=
yii2_test_item_delta_src
path
=
/
var
/
lib
/
sphinx
/
yii2_test_item_delta
path
=
SPHINX_BASE_DIR
/
yii2_test_item_delta
}
index
yii2_test_rt_index
{
type
=
rt
path
=
/
var
/
lib
/
sphinx
/
yii2_test_rt
path
=
SPHINX_BASE_DIR
/
yii2_test_rt
rt_field
=
title
rt_field
=
content
rt_attr_uint
=
type_id
...
...
@@ -118,15 +118,15 @@ searchd
{
listen
=
127
.
0
.
0
.
1
:
9312
listen
=
9306
:
mysql41
log
=
/
var
/
log
/
sphinx
/
searchd
.
log
query_log
=
/
var
/
log
/
sphinx
/
query
.
log
log
=
SPHINX_BASE_DIR
/
searchd
.
log
query_log
=
SPHINX_BASE_DIR
/
query
.
log
read_timeout
=
5
max_children
=
30
pid_file
=
/
var
/
run
/
sphinx
/
searchd
.
pid
pid_file
=
SPHINX_BASE_DIR
/
searchd
.
pid
max_matches
=
1000
seamless_rotate
=
1
preopen_indexes
=
1
unlink_old
=
1
workers
=
threads
# for RT to work
binlog_path
=
/
var
/
lib
/
sphinx
binlog_path
=
SPHINX_BASE_DIR
}
tests/unit/data/travis/cubrid-setup.sh
View file @
e648aef7
...
...
@@ -19,7 +19,7 @@ else
fi
cd
$CUBRID_VERSION
tar
xz
v
f ../../
$CUBRID_VERSION
-linux
.x86_64.tar.gz
tar
xzf ../../
$CUBRID_VERSION
-linux
.x86_64.tar.gz
cd
../..
...
...
@@ -64,7 +64,7 @@ install_pdo_cubrid() {
wget
"http://pecl.php.net/get/PDO_CUBRID-
$CUBRID_PDO_VERSION
.tgz"
fi
tar
-zxf
"PDO_CUBRID-
$CUBRID_PDO_VERSION
.tgz"
sh
-c
"cd PDO_CUBRID-
$CUBRID_PDO_VERSION
&& phpize && ./configure && make && sudo make install"
sh
-c
"cd PDO_CUBRID-
$CUBRID_PDO_VERSION
&& phpize && ./configure
--prefix=
$CWD
/cubrid/PDO_CUBRID-
$CUBRID_PDO_VERSION
&& make && sudo make install"
echo
"extension=pdo_cubrid.so"
>>
~/.phpenv/versions/
$(
phpenv version-name
)
/etc/php.ini
...
...
tests/unit/data/travis/sphinx-setup.sh
View file @
e648aef7
...
...
@@ -5,6 +5,10 @@ CWD=$(dirname "$SCRIPT")
# work around https://github.com/travis-ci/travis-ci/issues/2728
PATH
=
$PATH
:/usr/local/sphinx-2.1.9/bin
mkdir
-p
sphinx
sed
-i
s
\~
SPHINX_BASE_DIR~
$PWD
/sphinx~g
$CWD
/../sphinx/sphinx.conf
# log files
#sudo mkdir /var/log/sphinx
#sudo touch /var/log/sphinx/searchd.log
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment