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
a2cfc6b4
Commit
a2cfc6b4
authored
Nov 27, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1341 from pmoust/sphinx
[Test] [WIP] Sphinx support on Travis
parents
7fa3b699
12fe9292
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
4 deletions
+30
-4
.travis.yml
.travis.yml
+1
-0
config.php
tests/unit/data/config.php
+1
-1
sphinx.conf
tests/unit/data/sphinx/sphinx.conf
+3
-3
sphinx-setup.sh
tests/unit/data/travis/sphinx-setup.sh
+25
-0
No files found.
.travis.yml
View file @
a2cfc6b4
...
@@ -18,6 +18,7 @@ before_script:
...
@@ -18,6 +18,7 @@ before_script:
-
tests/unit/data/travis/apc-setup.sh
-
tests/unit/data/travis/apc-setup.sh
-
tests/unit/data/travis/memcache-setup.sh
-
tests/unit/data/travis/memcache-setup.sh
-
tests/unit/data/travis/cubrid-setup.sh
-
tests/unit/data/travis/cubrid-setup.sh
-
tests/unit/data/travis/sphinx-setup.sh
#script:
#script:
# - phpunit --coverage-clover tests/unit/runtime/coveralls/clover.xml --verbose --exclude-group mssql,oci,wincache,xcache,zenddata,vendor,sphinx
# - phpunit --coverage-clover tests/unit/runtime/coveralls/clover.xml --verbose --exclude-group mssql,oci,wincache,xcache,zenddata,vendor,sphinx
...
...
tests/unit/data/config.php
View file @
a2cfc6b4
...
@@ -42,7 +42,7 @@ return [
...
@@ -42,7 +42,7 @@ return [
'sphinx'
=>
[
'sphinx'
=>
[
'sphinx'
=>
[
'sphinx'
=>
[
'dsn'
=>
'mysql:host=127.0.0.1;port=9306;'
,
'dsn'
=>
'mysql:host=127.0.0.1;port=9306;'
,
'username'
=>
''
,
'username'
=>
'
travis
'
,
'password'
=>
''
,
'password'
=>
''
,
],
],
'db'
=>
[
'db'
=>
[
...
...
tests/unit/data/sphinx/sphinx.conf
View file @
a2cfc6b4
...
@@ -14,9 +14,9 @@ source yii2_test_article_src
...
@@ -14,9 +14,9 @@ source yii2_test_article_src
type
=
mysql
type
=
mysql
sql_host
=
localhost
sql_host
=
localhost
sql_user
=
sql_user
=
travis
sql_pass
=
sql_pass
=
sql_db
=
yii
2
test
sql_db
=
yiitest
sql_port
=
3306
# optional, default is 3306
sql_port
=
3306
# optional, default is 3306
sql_query
= \
sql_query
= \
...
@@ -37,7 +37,7 @@ source yii2_test_item_src
...
@@ -37,7 +37,7 @@ source yii2_test_item_src
type
=
mysql
type
=
mysql
sql_host
=
localhost
sql_host
=
localhost
sql_user
=
sql_user
=
travis
sql_pass
=
sql_pass
=
sql_db
=
yii2test
sql_db
=
yii2test
sql_port
=
3306
# optional, default is 3306
sql_port
=
3306
# optional, default is 3306
...
...
tests/unit/data/travis/sphinx-setup.sh
0 → 100755
View file @
a2cfc6b4
#!/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
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