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
5cb2283d
Commit
5cb2283d
authored
Nov 27, 2013
by
Panagiotis Moustafellos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Travis: Adding sphinx support
parent
0aa9afab
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
3 deletions
+19
-3
.travis.yml
.travis.yml
+1
-0
config.php
tests/unit/data/config.php
+1
-1
sphinx.conf
tests/unit/data/sphinx/sphinx.conf
+2
-2
sphinx-setup.sh
tests/unit/data/travis/sphinx-setup.sh
+15
-0
No files found.
.travis.yml
View file @
5cb2283d
...
...
@@ -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
...
...
tests/unit/data/config.php
View file @
5cb2283d
...
...
@@ -42,7 +42,7 @@ return [
'sphinx'
=>
[
'sphinx'
=>
[
'dsn'
=>
'mysql:host=127.0.0.1;port=9306;'
,
'username'
=>
''
,
'username'
=>
'
travis
'
,
'password'
=>
''
,
],
'db'
=>
[
...
...
tests/unit/data/sphinx/sphinx.conf
View file @
5cb2283d
...
...
@@ -14,7 +14,7 @@ source yii2_test_article_src
type
=
mysql
sql_host
=
localhost
sql_user
=
sql_user
=
travis
sql_pass
=
sql_db
=
yii2test
sql_port
=
3306
# optional, default is 3306
...
...
@@ -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
...
...
tests/unit/data/travis/sphinx-setup.sh
0 → 100755
View file @
5cb2283d
#!/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
# 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