Commit 2ca5a845 by Qiang Xue

Merge pull request #1379 from klimov-paul/travis-sphinx

Allow Travis to be run not only for YiiSoft
parents 629d7f71 0b878486
...@@ -13,7 +13,6 @@ before_script: ...@@ -13,7 +13,6 @@ before_script:
- composer self-update && composer --version - composer self-update && composer --version
- composer require satooshi/php-coveralls 0.6.* --dev --prefer-dist - composer require satooshi/php-coveralls 0.6.* --dev --prefer-dist
- mysql -e 'CREATE DATABASE yiitest;'; - mysql -e 'CREATE DATABASE yiitest;';
- mysql -D yiitest -u travis < /home/travis/build/yiisoft/yii2/tests/unit/data/sphinx/source.sql
- psql -U postgres -c 'CREATE DATABASE yiitest;'; - psql -U postgres -c 'CREATE DATABASE yiitest;';
- echo 'elasticsearch version ' && curl http://localhost:9200/ - echo 'elasticsearch version ' && curl http://localhost:9200/
- tests/unit/data/travis/apc-setup.sh - tests/unit/data/travis/apc-setup.sh
......
...@@ -22,6 +22,9 @@ sudo chmod 777 /var/lib/sphinx # ugly (for travis) ...@@ -22,6 +22,9 @@ sudo chmod 777 /var/lib/sphinx # ugly (for travis)
sudo mkdir /var/run/sphinx sudo mkdir /var/run/sphinx
sudo chmod 777 /var/run/sphinx # ugly (for travis) sudo chmod 777 /var/run/sphinx # ugly (for travis)
# Setup source database
mysql -D yiitest -u travis < $CWD/../sphinx/source.sql
# setup test Sphinx indexes: # setup test Sphinx indexes:
indexer --config $CWD/../sphinx/sphinx.conf --all indexer --config $CWD/../sphinx/sphinx.conf --all
......
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